![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File transfer to a pipe | val0822 | Shell Programming and Scripting | 1 | 08-18-2008 11:49 AM |
| Transfer the file | manas_ranjan | UNIX for Dummies Questions & Answers | 2 | 07-27-2007 09:33 AM |
| file transfer | bkan77 | Shell Programming and Scripting | 4 | 07-27-2007 05:55 AM |
| transfer of specific file content to another file | mem101 | Shell Programming and Scripting | 1 | 10-18-2005 02:01 PM |
| Directory file transfer...help | ian | UNIX for Dummies Questions & Answers | 2 | 07-25-2001 08:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
file transfer using Ftp
Hi All,
I am very new to shell scripting,I have some doubts how we can do a file transfer using ftp I wanted to transfer files using non_secure ftp and secure ftp(sftp) mode, for secure ftp i am using following code Code:
verbose="verbose"
ftp="/usr/bin/ftp"
user="ABC"
pass="123"
IP="XXX.XXX.4.190"
echo "open $IP
quote USER $user
quote PASS $pass
$verbose
$type
put $inputfilepath $outputfilepath
close
quit" |$ftp -n
and how i can perform non-secure FTP Please help me Thanks in advance Last edited by Yogesh Sawant; 05-13-2008 at 09:17 AM.. Reason: added code tags |
|
||||
|
your "tmpfile" that contains the server/userdata
Code:
user="ABC" pass="123" IP="XXX.XXX.4.190" call it like this: ftpscript /path/to/the/userdata-tmpfile Code:
$1
verbose="verbose"
ftp="/usr/bin/ftp"
echo "open $IP
quote USER $user
quote PASS $pass
$verbose
$type
put $inputfilepath $outputfilepath
close
quit" |$ftp -n
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|