This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
cygwin cron
- From: Smithesh Ramachandran <smithesh at ticketmaster dot com>
- To: maharig at idirect dot net, cygwin at cygwin dot com
- Date: Mon, 21 Oct 2002 13:53:12 -0700
- Subject: cygwin cron
- Reply-to: smithesh at ticketmaster dot com
Hi ,
I'm trying to scp (without pass phrases) using dsa on cygwin cron.
scp works fine, but not within cron.
this is what I'm doing -
crontab -e
00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
and this is what test.pl has:
#!/usr/bin/perl
system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
smithesh@172.26.20.34:tmp/.');
When I run test.pl by itself on cygwin command line, it works (meaning
it does the scp), but not within cron.
Also tried putting scp stmt itself within cron and didn't work either.
I also tried removing, installing, stopping and starting cron using
cygrunsrv. cron in general works, but is not doing the above scp stuff.
I'm not sure if I'm doing anything wrong.. Help..
Thanks,
Smithesh.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/