![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Batch job to delete files from various directories | guruparan18 | Shell Programming and Scripting | 3 | 05-10-2008 01:31 PM |
| batch delete using find, files with # character | tphyahoo | UNIX for Dummies Questions & Answers | 0 | 05-30-2006 09:05 AM |
| Converting Shell script to Dos batch files | darwinkna | Shell Programming and Scripting | 1 | 05-12-2006 08:01 AM |
| Looping/Repetition in Batch files | kimpot7268 | Shell Programming and Scripting | 2 | 12-12-2005 04:45 AM |
| Looping/Repetition in Batch files | kimpot7268 | UNIX for Advanced & Expert Users | 1 | 12-10-2005 12:49 AM |
|
|
LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
|||
|
Hi, ober
You can write a simple shell script to automate an ftp process, similar to a win batch file. Check out Heiner's Shelldorado at http://oase-shareware.org/shell/ for scripting resources. The ftp man page on your system will help, too. To schedule the ftp process, you can make an entry in your crontab. (man cron or man crontab). |
|
|||
|
if you want ftp to be done automatically, here is a file called ".netrc" (see man page .netrc)
However, there is a security risk to run this one since password(s) will be on this file; make sure to delete this file after runing your cron job(s) or shell script(s). Hope this help
__________________
:rolleyes: |
|
|||
|
This is a typical "batch" ftp script we run all the time:
#!/usr/bin/ksh ## put server name or IP address of FTP server ## provide username & password for the ftp server ## cd to whatever directory you want to put files to or get files from ## issue get or put commands - ## Anything you can do on a command line can be inside this script ftp -n -v ipaddress <<-ENDTAG user username password cd dir get file1 prompt mget filepattern* ENDTAG |
|||
| Google UNIX.COM |