Below is some perl code which works fine when executed locally, however when
I telnet to the system it is on and and it is run things are not run in the
correct order. In fact it skips the first system call all together.

Any suggestions on how to fix this?

#!/usr/bin/perl

$pid = getppid;
print "PPID is $pid";

$run = "./a.out";
system($run);

sleep 2;
$run = "kill -9 $pid";

system($run);


It totally skips a.out. What it is meant to do is run a.out and then close
the telnet session using the kill. Locally it works fine(ie. not telneting).
When telneting it just kills without running a.out.
All help appreciated,

Matthew


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to