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.
FTP Scripst in HP-UX
Name: emedina01 Date: July 7, 2005 at 13:17:10 Pacific OS: windows XP CPU/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.
Name: David Perry Date: July 8, 2005 at 05:06:30 Pacific
Reply:
#!/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
0
Response Number 2
Name: Sherwani Date: July 12, 2005 at 07:00:56 Pacific
Reply:
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
0
Response Number 3
Name: rajeshsu Date: July 26, 2005 at 23:02:57 Pacific
Reply:
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 !
Summary: We need to be able to quickly and easily attach files to e-mails using mail or mailx in HP-UX ver 10.2. And place them in a script. Any ideas?? ...
Summary: There is one command called snoop, - capture and inspect network packets-, in SunOS. Is there any this kind command in HP-UX. Thanks for answers ...