|
Posted by mmccaws2 on March 17, 2008, 12:10 pm
Please log in for more thread options On Mar 17, 8:51 am, xhos...@gmail.com wrote:
> > Hi
>
> > On unix I'll run a command at the command line like
>
> > > at now + 2 minutes
> > > ./trial.pl &
> > > Ctrl d
>
> > how do I do this from within a script?
>
> open my $at, "| at now + 2 minutes" or die $!;
> print $at './trial.pl&';
> close $at or die $!;
>
> Or you could do it strictly in Perl using fork and sleep and exec.
>
> Xho
>
> --
> --------------------http://NewsReader.Com/--------------------
> The costs of publication of this article were defrayed in part by the
> payment of page charges. This article must therefore be hereby marked
> advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
> this fact.
Thanks everyone
it works great.
Mike
|