Computing.Net > Forums > Unix > Sftp script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Sftp script

Reply to Message Icon

Name: HROMERO
Date: October 19, 2005 at 13:30:57 Pacific
OS: UNIX
CPU/Ram: UNIX
Comment:

I have this script but it is not working I need help, to transmit a file and rename it.

#!/bin/ksh

final_file="file name"

ftp -nvd IP_address << ENDFTP

user username password

cd <folder where you want to put the file>

bin

mput $final_file

quit

ENDFTP

the files on the following format - "CITI_xx_YYYYMMDD", where

- xx = PE, PR, VE, CH, CO

- YYYYMMDD - System date - which means you will need to rename the
file accordingly as part of the Unix transmission script




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Sftp script

Automated SFTP Script www.computing.net/answers/unix/automated-sftp-script/7006.html

SFTP script www.computing.net/answers/unix/sftp-script/5772.html

sftp Korn shell script www.computing.net/answers/unix/sftp-korn-shell-script/4741.html