egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

very difficult catch [exec command] does not really work....

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
obby
Voice


Joined: 14 Nov 2005
Posts: 1

PostPosted: Mon Nov 14, 2005 12:28 pm    Post subject: very difficult catch [exec command] does not really work.... Reply with quote

hey,

i've a command which works nicely on the commandline through:
Code:
go -c 'open -e "do $fistpath $secondpath" remotemachine'


i've tried this to script into my tcl, to use it in my channel every way possible to me, but it ain't work... ;-/

Code:
set res [catch {eval exec "go -c 'open -e \"do $fistpath $secondpath\" remotemachine'"}]



i tried to escape the " and to {"} them, nothing helps...


any ideas what's wrong?

every help is greatly appreciated.. thanks
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Nov 14, 2005 8:02 pm    Post subject: Reply with quote

The following may help:

Tcl Built-In Commands - catch manual page

Tcl Built-In Commands - eval manual page

Tcl Built-In Commands - exec manual page
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Nov 15, 2005 4:22 am    Post subject: Reply with quote

do not enclose [exec]'s args in double quotes and read Script Security thread in the FAQ forum
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber