Have you tried using the complete path to a.out? (ie
/home/myname/bin/a.out)

On Wed, 31 Oct 2001, Matthew Blacklow wrote:

> 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
> 
> 

-- 
Rob Connor
TWR Communications
301 777 2692 x131
[EMAIL PROTECTED]

Good judgement comes from experience, and experience -
well, that comes from poor judgement.



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

Reply via email to