FTP Scripst in HP-UX
|
Original Message
|
Name: emedina01
Date: July 7, 2005 at 13:17:10 Pacific
Subject: FTP Scripst in HP-UXOS: windows XPCPU/Ram: 1.8 GHZ / 256 MB |
Comment: Hi folks, Some one know who create a FTP script under HP-UX 11..? and who pass parameters, a mean, for example, I need to pass the file name for transport this file to another server. Thanks a lot Eduardo Medina Juarez , Mexico
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: David Perry
Date: July 8, 2005 at 05:06:30 Pacific
Subject: FTP Scripst in HP-UX |
Reply: (edit)#!/bin/sh ftpput () { remotehost=$1 username=$2 password=$3 filename=$4 { echo "open $remotehost user $username $password hash cd /remote/directory put $filename close" } | ftp -i -n -v 2>&1 | tee /tmp/ftplog } ftpput hostname username password filetosend
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Sherwani
Date: July 12, 2005 at 07:00:56 Pacific
Subject: FTP Scripst in HP-UX |
Reply: (edit)You can use this document to script an FTP file transfer. The basic idea is shown here. ftp -i -v -n ftp.keekar.com (redirector} end_ftpuser keekar mypasswordbinary lcd /scripts/download cd /scripts get auto_ftp_xfer.ksh bye END_FTP
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: rajeshsu
Date: July 26, 2005 at 23:02:57 Pacific
Subject: FTP Scripst in HP-UX |
Reply: (edit)There are two ways 1. First method is #!/bin/sh ftp -n localhost <<! quote user YourUserName quote pass YourPassword binary put file1 file2 quit ! 1. Second method is ftp -n -i -v ftp.url.com <<! user username password cd /data/shared/ lcd /data/import mget vcm*.dat bye !
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: