This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Execute commands issue
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Apr 10, 2009
06:57 AM
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
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
(2) Replies
‎Apr 10, 2009
09:21 AM
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"