I have following lines in tcl script, which used to work on solaris. But on
linux tcl script is abruptly coming out during execution of exec. Could you
please quote the reason for this. Is there any changes needs to be done
while writing tcl script in linux.
set cnts [exec ls $FGW_SRC_LOC]
exec cp $FGW_SRC_LOC/$env(FGW_CONFIG_FILE) file1:new
exec cp $FGW_MON_LOC/$env(FGW_MON_FILE) file2:new
The script contains above lines, which is called from a c program.
When myProcess calls tcl script directly it is working. But when myProcess
is forked from Monitor process, script is failing while executing exec.
i.e
Working Scenario:
myProcess->calls tcl script
Not working scenario:
Monitor->myProcess->calls tcl script
(Means Monitor process forks my process which inturn calls tcl script)
--
View this message in context: http://www.nabble.com/execution-of-tcl-script-fails-tp24032152p24032152.html
Sent from the tcl-threads mailing list archive at Nabble.com.
|