PDA

View Full Version : Any one can help me with a little tcl prob


Razor
09-03-2003, 10:46 AM
I'm trying to link the irc !mkd to the mkd command on ftp.

So sitebot makes the dir

anyone can help me.. tried lotsa things but all dont work :s

bind pub - [set ioss(cmdpre)]mkd mkdsalias

proc trialssalias {nick uhost hand chan args} {

set dir [lindex $args 1]
set ee [::ftp::Quote $ioss(ftp) mkd $dir]
}



Stuff like this

:)

used iobanana as start and went editing.. this didnt work :|

b>d>>s
09-03-2003, 11:10 AM
set path "c:/site/root"
#arg passed by !mkd could then be vfs path to make
#ie. !mkd /Requests/[REQ]-some.shit
#
proc mkdir {nick uhost handle chan arg} {
global path
file mkdir -force "$path$arg"
}
bind pub -|- !mkd mkdir
putlog "mkdir loaded"


hm, actually thats local eggdrop script, sorry. . .

Mouton
09-03-2003, 12:59 PM
bAd: your solution would only work if he didn't mount any other drive in his ftp root.

Originally posted by Razor
set ee [::ftp::Quote $ioss(ftp) mkd $dir]

::ftp::Quote can't be used to do a mkd...
use ::ftp::MkDir $ioss(ftp) $dir

All the ::ftp:: commands are shown at the start of ftp.tcl

Razor
09-04-2003, 10:23 AM
thnx will try :)