Eggheads: Scripting help?
Simon Shine
simon at shine.eu.org
Tue Jun 21 07:54:28 CDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
M. Tolga Özses wrote:
| At the address http://www.kunduz.org/~kabuto/sendftp.txt you will see a
| TCL script. I want it to FTP some file to my server on a timely basis. I
| tried to use bind time but I couldn't make it. Help me?
I would use tcllib's "ftp" package.
http://tcllib.sourceforge.net/doc/ftp.html
You might have it on your system, or you might have to download it.
package require ftp
set fd [::ftp::open $server $user $password]
::ftp::type $fd binary
::ftp::put $fd $localfile $remotefile
::ftp::quit
| P.S: I tried e-mailing the author, but it bounced back :(
If you're gonna be dumb, you gotta be tough
When you're gettin' knocked down, you gotta get back up.
~ Alan Wade
- --
Best regards,
Simon Shine <http://shine.eu.org> GPG Key ID: 0x7BAEDE28
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCuA4E/2TMxHuu3igRAt4VAJ9AaW1hR8i/p1KI5WyO9Hrq3lkvQACggKmT
8HLi3nRFmrhGUx1zJARx+2Q=
=kX2S
-----END PGP SIGNATURE-----
More information about the Eggheads
mailing list