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.

TCL error [pub_req]: can't read "arg": no such variable

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

Post by Unique »

Hello 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
}
and here is the error i get
TCL error [pub_req]: can't read "arg": no such variable
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

This is because you are using

Code: Select all

proc pub_req {nick uhost hand chan args} { 
instead of

Code: Select all

proc pub_req {nick uhost hand chan arg} { 
Also, your exec command is wrong.. should be:

Code: Select all

  exec "/glftpd/bin/REQtcl.sh $arg" 
U
Unique

Post by Unique »

well it worked excetp one part was right
the exec command was set right the way i had it
thx you so much you have benn very helpful
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Yes, you're right.. n/m..

:smile:
Locked