Results 1 to 4 of 4
hi ALL,
I want use ncFTP in my shell script to transfer files one after another to ftpserver.
is there any script for that...and i want to know ftp is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-27-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 45
ncFTP
hi ALL,
I want use ncFTP in my shell script to transfer files one after another to ftpserver.
is there any script for that...and i want to know ftp is sucess or failure and file is sent or not .
how?
- 02-28-2008 #2there are a lot of options for ncftpput you might want to pay attantion to in order to increase verbose level, etcCode:
for name in `ls`; do ncftpput -u usernmae -p password ftp.server.com remotepath $name; done
- 03-01-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 45
ncftp
thanks for reply... i am not getting this code ...can u please explain me in steps ( please in detail explai because this is new for me)
and give me some more examples......
thanks in advanceLast edited by packet; 03-01-2008 at 06:25 AM. Reason: some more clarifications
- 03-07-2008 #4
Well.. the example is writen in bash.
What it does is to make a for cycle. It puts all the file names of the curent directory line by line into the variable $name. After that for each file it executes ncftpput. You can read about it's options by running ncftpput -h
remotepack is the server's path that your files will be uploaded to.


Reply With Quote
