Hi Sharon,
Get it solved. The specified machine didn’t give trust level 5 to the
requesting machine.
Thanks,
Cindy
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: January-22-13 9:01 PM
To: Cindy Zhu
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] Running a Python script on the remote machine
What is the STAFResult value after the <process> is run? It will contain an
error message that may provide more information about what the problem is (e.g.
a file or directory it can't find or create).
What is the command that you use to run the python script on the specified
machine without STAF via the command line. The same command should work when
run via a STAF PROCESS START request or via a <process> element in a STAX job
assuming the environment from the command line is the same as the environment
that STAFProc is running in on the specified machine. By environment, I mean
things like the environment variable settings and the current user. You can
check the environment variables that STAFProc is running with by submitting a
"STAF machine VAR LIST" request and looking at the values of the STAF/Env/xxx
variables. You may also want to log the value of the cmd variable in your STAX
job to make sure it contains what you want it to.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com<mailto:luc...@us.ibm.com>
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <c...@fekete.com<mailto:c...@fekete.com>>
To:
"staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>"
<staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>>,
Date: 01/22/2013 05:31 PM
Subject: [staf-users] Running a Python script on the remote machine
________________________________
Hi,
I have the following code to run a python script on the specified machine:
<script>cmd='python.exe %s\\DeleteOldSnapshots.py %s' % (tempDir_PS,
VMIMAGE)</script>
<process name = "'Delete old snapshots'">
<location>machine</location>
<command>cmd </command>
<stdout mode="'append'">'D:\\Cindy.out'</stdout>
<stderr mode="'append'">'D:\\Cindy.err'</stderr>
<console use ="'new'"/>
</process>
I got this: “the process failed to start, RC 10….”
Can you please tell me how to run a python script on the specified machine?
Thanks,
Cindy
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users