Home » Applications » Oracle Fusion Apps & E-Business Suite » [HELP] Problem with HOST based concurrent program
[HELP] Problem with HOST based concurrent program [message #405250] Wed, 27 May 2009 03:16
rak007
Messages: 107
Registered: October 2006
Location: Mumbai / Pune, India
Senior Member
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
Previous Topic: fileds from database
Next Topic: web page
Goto Forum:
  


Current Time: Sun Jun 16 14:35:00 CDT 2024