Hello
I have a curious problem with exec. I use this command to find out the status of a process. But even if the same command gives the right output when executed from command-line, using it with exec gives this: child process exited abnormally
here is the line:
catch {exec ps aux | grep...
Hi,
I accidentally stumbled across this page: http://www.beedub.com/book/3rd/Tkexampl.pdf
there is a good example at the beginning of that pdf documment which clears the output logging problem.
Thanks anyway! This is a good forum.
Hello,
I'm trying to start an application with a tcl proc and catch the output of that application into a file.
For now I could only manage to start it like this:
set output [catch { exec myprogram } ]
set output_file [open "$env(HOME)/.output.log" "w"]
puts $output_file $output
close...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.