Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Automated ftp?

Thread Tools
 
Search this Thread
 
Old 08 May 2003, 12:38 PM
  #1  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

Just got a small access job that needs doing every day for the next 3 months before 7.00 each morning!!!

The files are on a ftp site and need retrieving and putting back once work is completed. The work bit is automated within access.

I know I could set the alarm clock!!! but there must be an easier way.

Anyone know of a way of automating the ftp file transfers?
Old 08 May 2003, 04:16 PM
  #2  
Stueyb
Scooby Regular
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

you can force ftp to do it via the command ftp -s infile

Basically it will run the file in a script fashion so just write in the script whatever you need to do (not forgetting to logon etc) and run it with this command. If you want to be really clever you can even schedule it with an at command under nt/w2k
Old 08 May 2003, 04:47 PM
  #3  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

We use something called PyroBatchFTP which lets you script the transfer so you can do 2-way syncs. if need be, and comes with its own scheduler as well.

That'll do the job!

Gary
Old 09 May 2003, 11:03 AM
  #4  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

what about the ftp.exe included within windows?

Anyone know where I can get some information about it.
Old 09 May 2003, 12:39 PM
  #5  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Post

Stueyb's answer highlights this, try ftp -h in a console window to view its help.

~Jules
Old 09 May 2003, 01:36 PM
  #6  
ragnarock2
Scooby Regular
 
ragnarock2's Avatar
 
Join Date: Jan 2003
Posts: 502
Likes: 0
Received 0 Likes on 0 Posts
Post

Create a script file in notepad with lines as follows (assuming username is mark, and password is test):
mark
test
get /home/mark/test
bye

Save the script;

Then create a schedule task for ftp.exe (to run when you like), open the advance options, and after ftp.exe put -s:scriptnameabove hostname) i.e. assuming hostname of test, and script name of test.script:
ftp.exe -s:test.script test
Old 09 May 2003, 01:40 PM
  #7  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

We use this script with FTP.exe and Task Scheduler for grabbing NAI virus updates:

open ftp.nai.com
anonymous
anonymous@anonymous.net
prompt off
bin
cd /pub/antivirus/datfiles/4.x/
mget *.zip
mget update.ini
quit

It's called from a batch file:

Cd\Source
Cd Anti-virus
Cd NAI
Cd DATUpdates
Del update.ini
ftp -s:sdat_ftp_cmds.txt
Old 12 May 2003, 10:20 AM
  #8  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

Many thanks, nearly sorted.

I', using scheduler to run the script for ftp.exe and to run the access program automatically.

Unfortunately I now need to download a .csv file from a webpage. The problem is that it is generated when you visit the page and I have to right click and save as. The page generation can take a couple of minutes.

Any ideas how I can automate this???
Old 12 May 2003, 10:21 AM
  #9  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

can you hit the page with a command line browser like lynx to generate the file ?


Steve
Old 05 August 2003, 12:41 PM
  #10  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Post

http://www.netload.com.au/

Pukka app, use it at work to collate log files from web servers. Loads of settings, including automation. Set it to run using AT or scheduler and you're sorted. Make sure you set it up right before you accidentally delete your live database

~Jules

Edited to say: It does do downloads as well as uploads, just doesnt say that on the home page of the site.

[Edited by judgejules - 5/8/2003 12:42:06 PM]
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM
mazbow
ScoobyNet General
2
15 September 2015 06:58 PM
IWatkins
Computer & Technology Related
6
07 August 2002 04:08 PM
BuRR
Computer & Technology Related
1
30 January 2002 11:07 AM



Quick Reply: Automated ftp?



All times are GMT +1. The time now is 02:06 AM.