This works correctly for me (on a RedHat system). For example: # file ~/abcd /root/abcd: ERROR: cannot open `/root/abcd' (No such file or directory)
# cat test.sh #!/bin/sh cp /tmp/test/file1 ~/abcd # STAF local PROCESS START SHELL COMMAND /tmp/test/test.sh RETURNSTDOUT STDERRTOSTDOUT WAIT Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : } ] } # file ~/abcd /root/abcd: ASCII text What is the exact STAF PROCESS START command you are executing? What is the output of: file ~ STAF local PROCESS START SHELL COMMAND "file ~" RETURNSTDOUT STDERRTOSTDOUT WAIT Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: "Uma Maheswar Chilukuri" <u...@mach.com> To: David Bender/Austin/i...@ibmus Cc: staf-users@lists.sourceforge.net Date: 04/01/2010 04:22 AM Subject: Re: [staf-users] Persisten Shell Session through PROCESS service I tried this, But if the script contains ~ metacharacters like below then it is not working. Where as execution of script with out STAF works. #!/usr/bin/ksh cp file1 ~/abcd will give the error. Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : cp: ~/abcd/ not found } ] } Please let me know is there a way to overcome this? Note that '*' metacharacter works for filenames that is #!/usr/bin/ksh cp file* /export/home/abcd works. Thanks, Uma. From: David Bender [mailto:bda...@us.ibm.com] Sent: Mon 3/22/2010 7:49 PM To: Uma Maheswar Chilukuri Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Persisten Shell Session through PROCESS service No, that is not possible. If you need to have multiple requests execute in the same shell, then you could create a shell script (or Windows bat file) that executed the multiple requests, and then execute the shell script or bat file via the PROCESS START request. Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC Inactive hide details for "Uma Maheswar Chilukuri" ---03/22/2010 08:41:32 AM--- Hi,"Uma Maheswar Chilukuri" ---03/22/2010 08:41:32 AM--- Hi, From: "Uma Maheswar Chilukuri" <u...@mach.com> To: <staf-users@lists.sourceforge.net>, <staf-users@lists.sourceforge.net> Date: 03/22/2010 08:41 AM Subject: [staf-users] Persisten Shell Session through PROCESS service Hi, >From STAF User guide for PROCESS service. 8.12.2 "SHELL specifies that COMMAND should be started via a separate shell." >From this I know that each request to PROCESS service is executed in a separate/New shell. Is there a way to have a shell session persisted for multiple requests? Thanks Uma. ------------------------------------------------------------------------------ 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 [attachment "graycol.gif" deleted by David Bender/Austin/IBM] [attachment "ecblank.gif" deleted by David Bender/Austin/IBM] ------------------------------------------------------------------------------ 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
<<inline: graycol.gif>>
<<inline: ecblank.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