Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread George
John, try the following commands. Here is a direct powershell command through staf: C:\work\bin>staf local process start shell command "ps" WAIT STDERRTOSTDOUT RETURNSTDOUT Response { Return Code: 0 Key: Files : [ { Return Code: 0 Data : Handl

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread Sharon Lucas
Return code 75 is not a STAF return code. It appears that there are some things wrong with your command: 1) You used a \" to nest a double quote within a double quote for the first double quote, but you also need to use \" for the ending quote. Also, I would use / instead of \ within the fil

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread John Andoh
Hi George, Yes, I have tried your suggestion. The result was the same: the STAF command produced a Response code of 75. Sharon et al: Can you provide me an insight into Response code of 75? Regards, John Andoh On Fri, May 20, 2011 at 6:35 AM, George wrote: > Did you try setting your staf de

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread George
Did you try setting your staf default shell to powershell? I use the following In my staf.cfg Set defaultshell "C:/WINNT/system32/WindowsPowershell/v1.0/powershell.exe -c %c" George On May 20, 2011, at 5:23 AM, John Andoh wrote: > Hi Sharon, > > With the -PSConsoleFile parameter, the STAF

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread Padalia, Preeti
[mailto:luc...@us.ibm.com] Sent: Friday, May 20, 2011 4:20 AM To: John Andoh Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Using STAF with a powershell snapin I don't know anything about Powershell snapins. But, if you specify the following does it work? C:\>STAF local

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread John Andoh
Hi Sharon, With the -PSConsoleFile parameter, the STAF command produced a Response code of 75: C:\> C:\>staf local process start command "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile \"C:\Program Files\Hi\PSSnapin\PSSnapin.psc1" -NoExit .\test.ps1 ; exit" wait returnst

Re: [staf-users] Using STAF with a powershell snapin

2011-05-19 Thread John Andoh
Hi Sharon, Thanks for the quick response. The command failed and produced the same error message. C:\>STAF local PROCESS START SHELL COMMAND "powershell -ExecutionPolicy UNRESTRICTED -command C:\\test.ps1" WAIT RETURNSTDOUT RETURNSTDERR SAMECONSOLE Response { Return Code: 0 Key

Re: [staf-users] Using STAF with a powershell snapin

2011-05-19 Thread Sharon Lucas
I don't know anything about Powershell snapins. But, if you specify the following does it work? C:\>STAF local PROCESS START SHELL COMMAND "powershell -ExecutionPolicy UNRESTRICTED -command C:\\test.ps1" WAIT RETURNSTDOUT RETURNSTDERR SAMECONSOLE -