笑看云卷云舒,淡观潮起潮落!
Friday Aug 29, 2008
non-interactive FTP
#!/bin/ksh -p
ftp -n patchstatus.sfbay <<EOT | mailx -s "FTP server list" your-email@address
user username password
cd /pub
dir
quit
EOT
If you are Sun employee, replace 'username' with 'ftp' and your-email@address and passwd with your real email. Try to see what happen!
Posted at 07:22PM Aug 29, 2008 by forrest in Program Tips | Comments[0]

