how to get a return value from a shell script?
how to get a return value from a shell script?
- Subject: how to get a return value from a shell script?
- From: "Ben Zhu" <email@hidden>
- Date: Tue, 10 Oct 2006 18:44:06 -0400
- Thread-topic: how to get a return value from a shell script?
Hi there,
I am wrinting an installer using packageMaker.
In my installer, I have an InstallationCheck perl script to call a shell script that returns an exit status.
The shell script file is put under the same directory of InstallationCheck file and set to the execute mode.
In the InstallationCheck script, I have:
my $rv = 0;
$rv = system('checkMyInstall');
After running this script, the return value always was -1;
If changing the statement to:
$rv = system('sh checkMyInstall');
the installer complainted it couldn't find the checkMyInstall file.
However, if I ran the InstallationCheck from a terminal window, it was fine.
Can someone tell me how I can get the return value from the shell script?
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden