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::
Hi David,
you can use either system or `` , for example :
system("ls -F /var > /tmp/t.tmp");
or
$tmp = `ls -F /var > /tmp/t.tmp`;
-Djoko-
www.dnet.net.id
-
It is said that the lonely eagle flies to the mountain peaks while the lowly
ant crawls the ground, but cannot the soul o
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