Operating System - HP-UX
1753840 Members
8361 Online
108806 Solutions
New Discussion

Re: sftp cron job not working

 
Steven E. Protter
Exalted Contributor

Re: sftp cron job not working

Shalom,

scp is a better tool for this job. Rita hits the nail on the head.

scp -p /home/rocky.coned.sftp rocky@sftp.remoteserver.com:///home/rocky/coned.csv

Before trying either, use this document to set up password free access properly.

http://www.hpux.ws/?p=10

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rocky Lavoie_1
Advisor

Re: sftp cron job not working

Hello All,
Thanks for the replies.
I solved the issue. I was trying to execute the command in the "rocky" crontab file. I put the command in a file name coned.cron and gave it a chmod 700. I put the coned.cron file in the "rocky" crontab and it worked. I think it didn't like the space in the command.
Thanks for your help.
Rocky