I need to make a script for schedule a job that every day put a file into a
FTP Server. I am using Solaris 8
I need to autenticate, change to bin mode and finnally put the file LOG.tar
Thanks in advance
ftp -i -v -n hostame_ftp_server <<EOF
user login passwd
binary
put filename
bye
EOF
for more information, man ftp ! ;-)
Ludovic
Javier Villegas <ma...@impsat1.com.ar> a écrit dans le message :
cPo2b.2051$mm3...@fe06.atl2.webusenet.com...
Check out Expect:
--Dave
> "Javier Villegas" <ma...@impsat1.com.ar> wrote in message
> news:<cPo2b.2051$mm3...@fe06.atl2.webusenet.com>...
>> Hi
>>
>> I need to make a script for schedule a job that every day put a file
>> into a
>> FTP Server. I am using Solaris 8
>>
>> I need to autenticate, change to bin mode and finnally put the file
>> LOG.tar
Save and make executable as putlog.ksh:
usage: putlog.ksh username userpass destination
#!/bin/ksh
USERID="user "$1" "$2
ftp -n <<+++
open $3
$USERID
bin
put LOG.tar LOG.tar
bye
+++
It's not too pretty but it works.
Barton Fisk
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
ncftpput -u username -p passwd remotehost remote-dir LOG.tar
Default transfer type is binary - no need to specify it in your case.
Bret
"Javier Villegas" <ma...@impsat1.com.ar> wrote in message news:<cPo2b.2051$mm3...@fe06.atl2.webusenet.com>...
2. Then crontab a command of:
%ftp ftp.tin.org
3. The steps in your ~/.netrc will run automatically, in series,
causing the FTP download (or upload) to occur automatically.
2. Specifically view the section titled:
(13) How do I automate ftp sessions?
3. See also XTP (The Xpress Transport Protocol)
http://www.ca.sandia.gov/xtp/xtp.html
Eunice
http://www.columbia.edu/kermit/ftpscripts.html
- Frank