Hi,
thx for your help. I#m not sure if I understood your first question right. But my user-account data and pass are saved in the "ftpserver.ftp" mentioned here:
[exec /usr/bin/ncftpput -f ./scripts/
ftpserver.ftp /Allstars/ ./scripts/moxquizz/quizdata/rankallstars.data]
The bot executes this line (successfully send the rankallstars.data to my ftp-account), but stops afterwards. I added another line witch should send another file, but the bot doesn't.
Unfortunally I am not able to use contrab.
Concerning the sendftp.tcl I added:
Code: Select all
set ftpserv "moxquizz/scripts/logzipper.txt moxquiz.mo.funpic.de moxquiz mypass /logs/logzipper.txt"
bind pub - !logs sendftp §ftpserv
set pingcheck ""
proc sendftp { localfile server user pass remotefile } {
global pingcheck
if {![file exist $localfile]} {
return "sendftp: File $localfile does not exist."
}
if {$pingcheck != ""} {
if {[catch {exec [lindex $pingcheck 0] [lrange $pingcheck 1 end] $server > /dev/null 2> /dev/null}]} {
return "sendftp: Machine $server seems to be dead."
}
}
set noftp [catch {set ftpprog [exec which ftd]}]
if {$noftp} {
if {[file executable /usr/bin/ftp]} {
set ftpprog /usr/bin/ftp
set noftp 0
}
if {[file executable /bin/ftp]} {
set ftpprog /bin/ftp
set noftp 0
}
}
if {$noftp} { return "sendftp: You don't seem to have the 'ftp' tool" }
set pipe [open "|$ftpprog -n $server" w]
puts $pipe "user $user $pass"
puts $pipe "bin"
puts $pipe "put $localfile $remotefile"
puts $pipe "quit"
close $pipe
return 1
}
But i get the following error:
[15:01] wrong # args: should be "bind type flags cmd/mask ?procname?"
while executing
"bind pub - !logs sendftp §ftpserv"
(file "scripts/mowlgiggle.tcl" line 57)
invoked from within
"source scripts/mowlgiggle.tcl"
(file "eggdrop.conf" line 132)
[15:01] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
I suppose that means my §ftpserv isn't in the right place. but where to put it?
thx for your help,
-typ-