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.
Help for those learning Tcl or writing their own scripts.
-
whittinghamj
- Op
- Posts: 103
- Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj »
ok I have a script which sets a few cars
set who "$nick"
set source "$channel"
and i need to pass those to a .sh file like thus
[exec file.sh $who $source]
this tclsh not eggtcl - i know this is egghelp but its for the most part the same code syntax.
I just need it the run like that - tclsh dont need proc's so we don use them.
any ideas anyone?
-
rosc2112
- Revered One
- Posts: 1454
- Joined: Sun Feb 19, 2006 8:36 pm
- Location: Northeast Pennsylvania
Post
by rosc2112 »
Check the tcl 'exec' manpage, which has examples for particular platforms (win, unix, etc). That suggests using
- to build the commandline to pass to the shell if there's multiple args to pass along.