Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread Farhad Sabeti
@lists.sourceforge.net Subject: Re: [staf-users] Can not run expect using STAF automation Can you try creating an empty STDIN file (something like /tmp/stdin.txt) on the system where the expect script is running, and then add the STDIN option to the PROCESS START request: ‘start shell command “/usr/local

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread David Bender
2009 03:26 PM To Paul Ellsworth/San Jose/i...@ibmus cc staf-users@lists.sourceforge.net Subject Re: [staf-users] Can not run expect using STAF automation Thanks Paul, Nikunj and David for your replies, So, I did add more debugging and investigation as you guys suggested and added the export

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread Farhad Sabeti
figure out what is happening once expect script is running. (using STAF). Thanks again, Farhad From: Paul Ellsworth [mailto:pell...@us.ibm.com] Sent: Wednesday, October 21, 2009 12:15 PM To: Farhad Sabeti Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Can not run expect

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread Farhad Sabeti
So I got it as far as running the expect scrip byt adding Export SHELL=/bin/bash But when expect script runs, it hangs there and I think is not getting the prompt for which the script's first line is waiting for. From: Farhad Sabeti Sent: Wednesday, October 21, 2009 11:04 AM To: 'staf-

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread Paul Ellsworth
Could it be that expect is not in the PATH that the STAF process's environment has defined? I ran into this issue while testing and fixed it by editing the /usr/local/staf/STAFEnv.sh to include my product's binary directory in the PATH. It could be that expect is in the target machine's login pro

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread Nikunj Verma
Adding the mailing list to cc list, in case someone wants to correct anything. On Thu, Oct 22, 2009 at 12:02 AM, Nikunj Verma wrote: > I guess your expect command, which you kept in the expstart.sh file is not > getting launched at all. You can check this by checking the exit status of > the exp

Re: [staf-users] Can not run expect using STAF automation

2009-10-21 Thread David Bender
Is there any additional output if you add the RETURNSTDOUT and RETURNSTDERR options on the PROCESS START request: ‘start shell command “/usr/local/expect/expect-5.43/testsuite/expect.tests/expstart.sh” RETURNSTDOUT STDERRTOSTDOUT WAIT’ Thanks, David David Bender STAF/STAX Development IBM