For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2004 > Execute program from within starpack









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Execute program from within starpack
John Culleton

2004-10-25, 4:02 pm

I need to bundle an executable program in my starpack, which is
addressed by an "exec" statement. Where do I put it and how do I
address it in my Tcl/Tk script?

John Culleton
Bob Techentin

2004-10-25, 4:02 pm

"John Culleton" <john@wexfordpress.com> wrote
> I need to bundle an executable program in my starpack,
> which is addressed by an "exec" statement. Where do I
> put it and how do I address it in my Tcl/Tk script?



Nope. Can't do that. :-)

Exec makes a system call to create a new process, and the system
doesn't know anything about the innards of your starkit or starpack.
So you can't exec a program directly out of the starkit.

But you can copy out an executable into /tmp and exec it from there.
See the bottom of the Starkit Howto page at http://wiki.tcl.tk/8186
for a pointer to an example.

Bob
--
Bob Techentin techentin.robert@NOSPAMmayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com