For Programmers: Free Programming Magazines  


Home > Archive > Tcl > June 2007 > Different behaviour between spawn and exec









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 Different behaviour between spawn and exec
tonydoy@googlemail.com

2007-06-26, 8:09 am

I have been experimenting with launching scripts from within a main
script which is being run from within a wish console. I have found
significant performance differences of these sub-scripts, which are
generating and processing snmp information by performing an exec on a
net-snmp application.

If I exec the sub-script from within the main script I get 'normal'
performance i.e. snmp messages are generated at 0.3 second intervals.

exec tclsh sub-script.tcl


If I spawn the sub-script from within the main script then the sub-
script's interaction with net-snmp increases from 0.3sec to 3sec
intervals

exp_spawn tclsh sub-script.tcl

With exec I get better performance but I am unable to see updates on
the console. With exp_spawn I am able to see the updates on the
console but I get poor performance.

Has anybody got any ideas of a way forward on this?

Sponsored Links







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

Copyright 2008 codecomments.com