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!

About

forrest

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today