adismaug has asked for the wisdom of the Perl Monks concerning the following question:
Dear perlmonks,
I have a strange problem, when running a script from shell and redirecting the output the script function fine, when I add the script to a crontab job and try redirecting output to a file noting happens!
You help please.
Regards,
Adi.
You help please.
Regards,
Adi.
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 (Curate) on Dec 07, 2009 at 11:17 UTC | |
by johngg (Canon) on Dec 07, 2009 at 11:55 UTC | |
by stefbv (Curate) on Dec 07, 2009 at 12:37 UTC |
Back to
Seekers of Perl Wisdom