....
Could be a problem of path of a.out
(Why you use kill -9 ? You can use a normal TERM signal, with kill $pid)

    Walter

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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to