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 

running .sh file from tcl

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


Joined: 21 May 2006
Posts: 103

PostPosted: Fri Sep 21, 2007 7:16 pm    Post subject: running .sh file from tcl Reply with quote

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?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Sep 21, 2007 9:41 pm    Post subject: Reply with quote

Check the tcl 'exec' manpage, which has examples for particular platforms (win, unix, etc). That suggests using [list] to build the commandline to pass to the shell if there's multiple args to pass along.
Back to top
View user's profile Send private message
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