Scheduling FTP Uploads ...
#1
Scooby Regular
Thread Starter
Join Date: Jan 2002
Location: London
Posts: 550
Likes: 0
Received 0 Likes
on
0 Posts
Can anyone shed any light on this ? Basically I want to be able to schedule an FTP upload from a Windows NT machine, to a website.
I know I can use the "at" command to perform the schedule, but how do I automate the ftp upload ... ?
AT 02:59 /every:M,T,W,Th,F,S,Su ftpscript
What I want to automate, is this:
ncftp -u webmaster -p ****** ftp://ftp.website.com/www_html_root/
lcd C:\wwwroot\html\
asc
mput *.html
bin
mput *.jpg
mput *.gif
lcd C:\wwwroot\logs\
cd /www_log_root/
asc
mget *.log
quit
Alternatively, any UNIX bods that might know a way of scripting this for Linux ?
Cheers,
Jon
I know I can use the "at" command to perform the schedule, but how do I automate the ftp upload ... ?
AT 02:59 /every:M,T,W,Th,F,S,Su ftpscript
What I want to automate, is this:
ncftp -u webmaster -p ****** ftp://ftp.website.com/www_html_root/
lcd C:\wwwroot\html\
asc
mput *.html
bin
mput *.jpg
mput *.gif
lcd C:\wwwroot\logs\
cd /www_log_root/
asc
mget *.log
quit
Alternatively, any UNIX bods that might know a way of scripting this for Linux ?
Cheers,
Jon
#2
Save the FTP commands into a text file.
Then use the NT command line FTP client.
Damned if I can remember the exact paramter to use the text file as the command list for the FTP but I know it works. I use the system to grab a DAT update from NAI every day.
Chris
{Borrowing Michelle's PC}
Then use the NT command line FTP client.
Damned if I can remember the exact paramter to use the text file as the command list for the FTP but I know it works. I use the system to grab a DAT update from NAI every day.
Chris
{Borrowing Michelle's PC}
#3
Scooby Regular
Thread Starter
Join Date: Jan 2002
Location: London
Posts: 550
Likes: 0
Received 0 Likes
on
0 Posts
Cheers! Solves half the problem
syntax is:
ftp -i -s:ftp.txt ftp.webspace.com
(contents of ftp.txt)
username
password
lcd C:\temp\weblogs
cd logs
asc
mget *.log
mdel *.log
quit
works well, just need to find an equal in Linux, which sadly doesn't appear to support the scripted file thing
- Jon
syntax is:
ftp -i -s:ftp.txt ftp.webspace.com
(contents of ftp.txt)
username
password
lcd C:\temp\weblogs
cd logs
asc
mget *.log
mdel *.log
quit
works well, just need to find an equal in Linux, which sadly doesn't appear to support the scripted file thing
- Jon
Thread
Thread Starter
Forum
Replies
Last Post
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
shorty87
Wheels And Tyres For Sale
0
29 September 2015 02:18 PM