On Fri, 7 Dec 2001, David Lubowa wrote:
> how can i execute system commands in perl just like how i would do it
> while on console ..e.g tail -f /var/log/messages ..that kinda
> thing...as you can see the OS type we talking about here is *NIX ..
perldoc -f system
-- Brett
On Fri, Dec 07, 2001 at 07:59:53AM -0500, Craig wrote:
> system "tail -f /var/log/messages";
>
> or
>
> exec "tail -f /var/log/messages";
or
`tail -f /var/log/messages`
Although this won't fork your program and -f means it follows the file
updates.
For this you can use the CPAN module File::
cannot the soul of the ant soar as high as the
eagle?
-
- Original Message -
From: "David Lubowa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 7:45 PM
Subject: System COmmand's in Perl
>
> how can i execute sy
system "tail -f /var/log/messages";
or
exec "tail -f /var/log/messages";
Craig
>>> David Lubowa <[EMAIL PROTECTED]> 12/07/01 07:45AM >>>
how can i execute system commands in perl just like how i would do it while on console
..e.g tail -f /var/log/messages ..that kinda thing...as you can see
how can i execute system commands in perl just like how i would do it while on console
..e.g useradd -m -s /bin/false ..that kinda thing...as you can see the OS
type we talking about here is *NIX ..
thanx
_
Be different Get yourself
how can i execute system commands in perl just like how i would do it while on console
..e.g tail -f /var/log/messages ..that kinda thing...as you can see the OS type we
talking about here is *NIX ..
thanx
_
Be different Get yourself