in reply to Re^11: show a message only during the sleep time
in thread show a message only during the sleep time

you mean ?
system "(`/usr/local/www/cgi-bin/ntop/ntop.sh stop`)" or die "cannot +stop ntop: $!";

Replies are listed 'Best First'.
Re^13: show a message only during the sleep time
by merlyn (Sage) on Jul 25, 2005 at 21:30 UTC
    No. You're confusing backquotes with system again.

    If you want to launch the program as a child process:

    system "/usr/local/www/cgi-bin/ntop/ntop.sh", "stop" and die "... ";
    If you want to capture the output of the ntop command:
    my $output = `/usr/local ...`;
    Don't take the output of ntop, and feed it back to system!

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      thanks,
      I changed to:
      my $stop = `/usr/local/bin/sudo /usr/local/www/cgi-bin/ntop/ntop.sh st +op` or die "cannot stop ntop: $!";