Eggheads: Scripting help?

"M. Tolga Özses" mtozses at sabanciuniv.edu
Tue Jun 21 08:00:47 CST 2005


Thanks it worked :) Now if I want to do the same thing with 2 files with 
the same extension, I would have to use ftp -i right? What about the 
<remotefile> parameter of the sendftp? Would I have to use 
/home/user/*.html ?

Chris Northwood wrote:

>Add something like
>
>bind TIME - "?0 *" triggerftp
>proc triggerftp {1 2 3 4 5} {
> sendftp localfile server user pass remotefile
>}
>
>And this will trigger every 10 minutes.
>
>Chris 'laser' Northwood.
>
>-----Original Message-----
>From: eggheads-bounces at eggheads.org [mailto:eggheads-bounces at eggheads.org]
>On Behalf Of "M. Tolga Özses"
>Sent: 21 June 2005 14:06
>To: Eggdrop Discussion List
>Subject: Re: Eggheads: Scripting help?
>
>I don't see how that will help me with my request which is sending a 
>specific file on a timed basis. It already contains the ftp protocol. 
>What I'm looking for is how to use bind time in this script.
>
>Regards,
>
>Simon Shine wrote:
>
>  
>
>>-----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-----
>>
>>    
>>
>
>  
>

-- 
M. Tolga Özses
Bilgi Teknolojisi Birimi
Sabancı Üniversitesi
Orhanlı 34956 Tuzla
İstanbul
Tel: (216) 483 91 98
Web: http://people.sabanciuniv.edu/mtozses

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.eggheads.org/pipermail/eggheads/attachments/20050621/8966cd32/attachment.html>


More information about the Eggheads mailing list