Re: [Veritas-bu] More a Windows scripting question...but NBU related
2007-10-18 18:17:52
Hi
Try MS Unix Services : A free addon from microsoft - its their version of cygwin
Then again use cygwin. The MS version is simpler to play with.
From MS
Seamless sharing of data between Windows and UNIX network protocols.
Remote command-line access to both Windows–based computers and UNIX–based computers using existing UNIX practices and protocols.
Heterogeneous network administration, including common directory management and user password synchronization.
Full UNIX scripting support on Windows, including shells, utilities, hard and soft (symbolic) links, and a single rooted file system
High performance application development and execution environment to permit easy retargeting of key business applications.
A single, integrated installation process.
Simplicity of administration and management for all SFU components.
jim
On 10/19/07, Ron Jack (Systems Network) <rjack AT nando DOT com> wrote:
for /F "tokens=*" %%I in ('command') do set output=%%I
Remember, two %s in a batch file, one % on the command line.
C:\>for /F "tokens=*" %I in ('time /T') do set var=%I
C:\>set var=3:01p
C:\>echo %var% 3:01p
C:\>
So I need to run a command and then store the output of that command in a variable for later use. In UNIX this is easy, just put the command into back-quotes and place it in the variable you want the results to be stored in. It doesn't work this was in the Windows shell.
Is there anybody out there who knows how to do this in Windows?
Thank you.
Jason _______________________________________________ Veritas-bu maillist -
Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|