| View previous topic :: View next topic |
| Author |
Message |
obby Voice
Joined: 14 Nov 2005 Posts: 1
|
Posted: Mon Nov 14, 2005 12:28 pm Post subject: very difficult catch [exec command] does not really work.... |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Nov 15, 2005 4:22 am Post subject: |
|
|
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 |
|
 |
|