LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2003, 01:23 PM   #1
ramick
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Rep: Reputation: 0
FTP to vsftp


I am trying to FTP a file from a Dynix box to a webserver from a cronjob. The webserver is using vsftp.

my crontab is:
0 0-23 * * * /usr/oracle/runit

where /usr/oracle/runit contains:
#!/bin/csh
setenv HOME /usr/oracle
/usr/oracle/create_status
ftp xx.xx.x.x < /usr/oracle/client_status_ftp_web

(The procedure /usr/oracle/create_status just creates the file client_status.out)

where /usr/oracle/client_status_ftp_web contains:
lcd /usr/oracle
put client_status.out
quit

and a correctly formated .netrc file exists in the users home directory (/usr/oracle).

This works from the command line, but not through cron. It also works to other servers running Microsoft FTP Service (Version 5.0) & ProFTPD 1.2.5 Server through cron - what am I missing?
 
Old 12-05-2003, 01:35 PM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
is there an error from cron?

I don't see any authentification... is it an anonymous ftp?
 
Old 12-05-2003, 01:42 PM   #3
ramick
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
No errors from cron - I logged the output via:
0 0-23 * * * /usr/oracle/runit >> /usr/oracle/runit.log

and I get:
Fri Dec 5 10:01:32 PST 2003
Local directory now /usr/oracle
Not connected.

Authentication is done through .netrc. This file looks like:
machine xx.xx.x.x login ramick password jsdfed

I also tried authenticating by:
ftp -invd xx.xx.x.x 21 << END
user ramick jsdfed

although this won't work with vsftp...at least how this sys admin has it set up.

Last edited by ramick; 12-05-2003 at 01:44 PM.
 
Old 12-05-2003, 01:46 PM   #4
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
I'm sorry, this is going further than my knowledge allows me to go
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 07:24 PM
Vsftp Mojosue Linux - Software 3 02-18-2005 06:20 AM
vsftp, yes again cawpin Linux - Newbie 2 12-14-2003 01:37 PM
VSFTP....1 ftp root for all pmaxhammond Linux - Networking 2 10-30-2003 10:31 AM
Adding FTP users in vsFTP groovybrandon Linux - Software 3 02-27-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration