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
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
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


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: Order Management - Advance Pricing API
Next Topic: Interface Question
Goto Forum:

Current Time: Mon Aug 21 22:15:02 CDT 2017

Total time taken to generate the page: 0.05617 seconds