This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Bind help

Old posts that have not been replied to for several years.
Locked
U
Unique

Post by Unique »

hello i am tryin to get a bind to exec a script but its not taking the arg i am giving it
eg !uqsreq test
here is the code i did

bind pub - !uqsreq pub_req

proc pub_req {nick uhost hand chan args} {

exec /glftpd/bin/REQtcl.sh $ARG
}
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

First of all, 'args' has a special meaning in Tcl. Don't use it as your arg variable. Also, Tcl is case-sensitive.

Try the following:

Code: Select all

bind pub - !uqsreq pub_req 

proc pub_req {nick uhost hand chan arg} { 
  exec /glftpd/bin/REQtcl.sh $arg
}
U
Unique

Post by Unique »

nope that did not work

i got this error
TCL error [pub_req]: can't read "arg": no such variable
Locked