Tom Freeman wrote:
Hi folks,
I am running rsync via a perl script run in a cronjob.
my $message = `/usr/bin/rsync --rsh=/usr/local/openssh/bin/ssh -avu
$directory $destination`;
I want to be able to write this data
to a log file, so that if things don't work, I can find out what's wrong.
Is this a
It may be helpful to capture STDERR with STDOUT.
my $message = `/usr/bin/rsync --rsh=/usr/local/openssh/bin/ssh -avu
$directory $destination 2>&1`;
See: http://perldoc.com/perl5.8.0/pod/perlop.html#%60STRING%60
At 05:47 PM 3/4/2003 +, you wrote:
Hi folks,
I am running rsync via a perl scri
Tom Freeman wrote:
> Hi folks,
> I am running rsync via a perl script run in a cronjob.
>
> Here's the command i'm running
>
> my $message = `/usr/bin/rsync --rsh=/usr/local/openssh/bin/ssh -avu
> $directory $destination`;
>
> At the moment when I run the script it writes all output to the
> scr
Hi folks,
I am running rsync via a perl script run in a cronjob.
Here's the command i'm running
my $message = `/usr/bin/rsync --rsh=/usr/local/openssh/bin/ssh -avu
$directory $destination`;
At the moment when I run the script it writes all output to the screen. I
want to be able to write this da