adismaug has asked for the wisdom of the Perl Monks concerning the following question:
crontab: /1 * * * * /root/scripts/perf/test.pl > /tmp/test.txt 2>&1 #!/usr/local/bin/perl @route = qx { hping -S 81.196.2.58 -c 3 -p 80 2>&1 }; chomp(@route); @route = grep(/\w+/g, @route); foreach $line (@route) { print "$line\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System command from crontab
by cdarke (Prior) on Dec 07, 2009 at 11:41 UTC | |
|
Re: System command from crontab
by Bloodnok (Vicar) on Dec 07, 2009 at 13:22 UTC | |
|
Re: System command from crontab
by vitoco (Hermit) on Dec 07, 2009 at 13:24 UTC | |
|
Re: System command from crontab
by stefbv (Priest) on Dec 07, 2009 at 11:17 UTC | |
by johngg (Canon) on Dec 07, 2009 at 11:55 UTC | |
by stefbv (Priest) on Dec 07, 2009 at 12:37 UTC |