K
kaleem
Hello,
I've got a function in a package which I use to call system commands.
Inside this function
I've got the following code:
@results = `$command`; # $command is the system command to run
My problem is that this function (and the piece of code above) works
fine but it fails for
a particular command. It just hangs. The command which I'm calling is
actually a KornShell
script. I've verified that this script itself does not hang. I tried to
use -d option to debug and I
observed that the script hangs at the line shown above. Strangely, when
I ran the same code
using 'perl -e' it works! What I did was that I assigned the command to
$command and then
just put the same code as shown above. It worked with 'perl -e'.
Please let me know how can I debug this problem further.
Your responses will be greatly appreciated.
Thanks.
Kaleem.
I've got a function in a package which I use to call system commands.
Inside this function
I've got the following code:
@results = `$command`; # $command is the system command to run
My problem is that this function (and the piece of code above) works
fine but it fails for
a particular command. It just hangs. The command which I'm calling is
actually a KornShell
script. I've verified that this script itself does not hang. I tried to
use -d option to debug and I
observed that the script hangs at the line shown above. Strangely, when
I ran the same code
using 'perl -e' it works! What I did was that I assigned the command to
$command and then
just put the same code as shown above. It worked with 'perl -e'.
Please let me know how can I debug this problem further.
Your responses will be greatly appreciated.
Thanks.
Kaleem.