STAF provides a PROCESS service that has a START option that lets you run
most any command on a local or remote machine that is also running STAF
and it provides options like RETURNSTDOUT and STDERRTOSTDOUT to let you
return the stdout/stderr from running the command in the result. So,
first you need to know how to run your vbscript via the command line (in
batch mode to suppress the display of user prompts and script errors) and
the remote machine, and then you can run it on a remote machine using a
STAF PROCESS START request (after first using a FS COPY request to copy
the .vbs file to the remote machine if needed).
For example:
STAF remoteMachine PROCESS START SHELL COMMAND "cscript //nologo //b
scriptname.vbs" RETURNSTDOUT STDERRTOSTDOUT WAIT
See the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm for more information on the
PROCESS service and the FS service.
You may want to use STAX to execute yoru FS COPY and PROCESS START
requests. Or STAF provides APIs to submit STAF service requests via
Python, Perl, Java, C/C++, or Tcl,
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Sweety Sharma <sweety.e...@gmail.com>
07/14/2009 09:09 AM
To
staf-users@lists.sourceforge.net
cc
Subject
[staf-users] How to use STAX for executing a vbscript on a remote machine?
Hi,
I'm not sure whether this is the correct alias for sending in such
queries.... but i have a scenario where i need to execute a vbscript on
some remote machine.
I have the vbscript for converting hexadecimal number to decimal, I had
created the .vbs file and now want to run it on the remote machine and get
the output.
Can anyone suggest on this?
-Sweety
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users