cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
thunder
Level 5

Execute commands issue

I want run a .sh script like $INSTALL_DEST_PATH$/pkg.sh

the pkg.sh need 3 parameters they are "1" "12" "/opt/myApp/bin"

So I put follow cmmands in the command line
the first action is
chmod 755 $INSTALL_DEST_PATH$/pkg.sh

and second action is
$INSTALL_DEST_PATH$/pkg.sh 32 12 /opt/myApp/bin

but I find the second script never runs in installation progress.
then I try to change "store process's stdout in/out" value to

/install_std_out.log
but I can't find the log file in my root folder (installer run with root account.)


Anyone who can tell me how can I make deal with this part,
also how to store process's std in/out to a log file.

Thanks a lot,
Thunder
Labels (1)
0 Kudos

(2) Replies
pv7721
Level 20

thunder wrote:
I want run a .sh script like $INSTALL_DEST_PATH$/pkg.sh

the pkg.sh need 3 parameters they are "1" "12" "/opt/myApp/bin"

So I put follow cmmands in the command line
the first action is
chmod 755 $INSTALL_DEST_PATH$/pkg.sh

and second action is
$INSTALL_DEST_PATH$/pkg.sh 32 12 /opt/myApp/bin

but I find the second script never runs in installation progress.
then I try to change "store process's stdout in/out" value to

/install_std_out.log
but I can't find the log file in my root folder (installer run with root account.)


Anyone who can tell me how can I make deal with this part,
also how to store process's std in/out to a log file.

Thanks a lot,
Thunder


I think it'll work if you'll invoke a command like this:

/bin/sh -c "$INSTALL_DEST_PATH$$/$pkg.sh 32 12 /opt/myApp/bin"
0 Kudos
thunder
Level 5

Great! that works,

Thanks a lot!!!!!
0 Kudos