delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/21/16:56:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3DB46938.59763FCD@ticketmaster.com>
Date: Mon, 21 Oct 2002 13:53:12 -0700
From: Smithesh Ramachandran <smithesh AT ticketmaster DOT com>
Reply-To: smithesh AT ticketmaster DOT com
X-Accept-Language: en
MIME-Version: 1.0
To: maharig AT idirect DOT net, cygwin AT cygwin DOT com
Subject: cygwin cron

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 AT 172 DOT 26 DOT 20 DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019