1. No. But you can run the "net view" command via a STAF PROCESS START
request on any Windows machine. For example:
STAF machine1 PROCESS START COMMAND "net view" RETURNSTDOUT
STDERRTOSTDOUT WAIT
2. You should not be depending on STAFProc having been run from a
particular directory, meaning you shouldn't use relative path names in FS
requests, etc. You should use fully qualified path names. But if for
some reason you really needed to know the current directory, on Unix
machines, there's a environment variable named PWD. so you could resolve
the value of STAF variable STAF/Env/PWD. For example, STAF machine1 VAR
RESOLVE STRING {STAF/Env/PWD}. There's not an envirnment variable on
Windows that tells you what the current directory is. On Windows, you
could maybe the %CD% special variable. From a program submitting STAF
service requests, you could do: STAF winmach1 PROCESS START SHELL COMMAND
"echo %CD%" RETURNSTDOUT STDERRTOSTDOUT WAIT. For the Windows command
prompt, you need to do some special escaping to get this to work. For
example: STAF winmach1 PROCESS START RETURNSTDOUT STDERRTOSTDOUT WAIT
SHELL COMMAND "\""echo \%CD\%\""
3. You can't use STAF to start up STAF on a remote machine where STAF
isn't running (obviously). If an instance of STAF is running on a remote
machine, you can then use the STAF PROCESS START request to startup
another instance of STAF the remove machine.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
"Mohammad Jamal" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
04/09/2008 11:31 AM
To
"STAF User" <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] [STAF-USER] : Query regarding some STAF feature
1. Is STAF provide any command similar to the DOS "net view" command?
2. How we can determine from which directory STAF is running?
3. Can we start STAF on any remote machine from a local machine?
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users