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.

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

Help for those learning Tcl or writing their own scripts.
Post Reply
o
obby
Voice
Posts: 1
Joined: Mon Nov 14, 2005 12:12 pm

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

Post by obby »

hey,

i've a command which works nicely on the commandline through:

Code: Select all

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: Select all

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
Post Reply