Mayad, So, are you saying that you know the responses that this application needs and can put them in a file? If so, is this what you did when you said you tried redirecting stdin? First try running your application wihout using STAF and redirect stdin as well as stdout/stderr. For example, assuming you put the responses in a file named /tmp/stdin.txt, does your application run successfully when running it from a shel) and when specifying this stdin file and redirecting stdout and stderr as follows (this syntax assumes you're running it from a Bourne shell on your Linux machine:
# yourCommand < /tmp/stdin.txt > /tmp/stdout.txt 2>&1 If so, then try running it using the STAF PROCESS service. In addition to redirecting stdin, make sure that you also redirect stdout and stderr. For example, assuming you replace "yourCommand" with the actual command you use to run this application, what is the result from the following? STAF local PROCESS START SHELL COMMAND "yourCommand" STDIN /tmp/stdin.txt STDOUT /tmp/stdout.txt STDERRTOSTDOUT WAIT -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 "Mayad AL-Saidi" <mayad.al-sa...@cmgl.ca> 03/03/2010 03:06 PM To David Bender/Austin/i...@ibmus cc staf-users@lists.sourceforge.net Subject Re: [staf-users] Running a linux process in foreground I'm trying to run an application that reads input from the console. This application crashes when it tries to read input when running in the background. I've tried redirecting standard input but that didn't help. Any suggestions? Thanks, Mayad From: David Bender [mailto:bda...@us.ibm.com] Sent: Thursday, February 18, 2010 8:13 PM To: Mayad AL-Saidi Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Running a linux process in foreground There is not a way to start a process in the foreground. If you can provide some more information about why the process needs to be in the foreground, maybe we can provide some suggestions. Thanks, David David Bender STAF/STAX Development IBM Software Group, WPLC 11501 Burnet Rd. Bldg. 903-5B002 Austin, TX 78758-3400 Phone (T/L): 1-512-286-5315 (363-5315) ITN: 23635315 Email: bda...@us.ibm.com "Mayad AL-Saidi" ---02/18/2010 07:13:20 PM---Hi All, From: "Mayad AL-Saidi" <mayad.al-sa...@cmgl.ca> To: <staf-users@lists.sourceforge.net> Date: 02/18/2010 07:13 PM Subject: [staf-users] Running a linux process in foreground Hi All, I'm need to start a process on linux that would run in the foreground. Is there a way to do that using STAF? I've tried to send the request with STAF running in the foreground but the process would still run as a background job. Thanks and I really appreciate all the help. Mayad ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<image/gif>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users