We have a host based concurrent program. The shell script has been stored in the $CUSTOM_TOP/bin folder.
No softlink has been created. I was told that it is not necessary
Now the concurrent program takes only one parameter as file name.
So when the user submits the concurrent program, it errors out.
The reason is that the shell script is some thing like this
#
# Step 1 - Read Parameters from concurrent request
#
echo $1 | read p1 p2 p3 p4 p5 p6 p7 p8 p9
echo $p5 | sed 's/FCP_USERNAME=//g' | read p_username
echo $p9 | sed 's/"//g' | read src_file
echo $p4 | sed 's/FCP_USERID=//g' | read p_userid
src_path=$cust_TOP/in/IDI063/incoming
dest_path=$cust_TOP/in/IDI063/archive
echo "temp" | read dest_file
.....................
..................
..............
Here the $1 parameter is holding an entire string which has 9 things separated by space and the statement
It is something like this
ZHRINTGL FCP_REQID=3242338 FCP_LOGIN="userid/pass" FCP_USERID=4699 FCP_USERNAME="user" FCP_PRINTER="noprint" FCP_SAVE_OUT=Y FCP_NUM_COPIES=0 "file1.dat"
echo $1 | read p1 p2 p3 p4 p5 p6 p7 p8 p9
is intending to store those 9 values in these nine variables (p1...p9)
Here i am confused that when i submitted the request with only the file name (file1.dat) then how come all these things went into $1
Also considering that it holds this long string...i am not able to segregate this string into the p1...p9 variables.
suppose if i print the $p1, $p2..these values then it ddes not show any data
Even simple thing like
echo "temp" | read dest_file
when followed by $dest_file
reveals no output
Please help