A new problem:
I have the following command:
set command "cd $dir; cat toto" where toto is a file
then
if [catch {open "|$command |& cat"} input ] {
$log insert end $input\n
} else {
fileevent $input readable [Addtext $input]
}
Where Addtext is a function that simply adds text into log (text widget)
In my widget I get "file6" only so I would expect to have the output of the command I set, what am I doing wrong?
I have the following command:
set command "cd $dir; cat toto" where toto is a file
then
if [catch {open "|$command |& cat"} input ] {
$log insert end $input\n
} else {
fileevent $input readable [Addtext $input]
}
Where Addtext is a function that simply adds text into log (text widget)
In my widget I get "file6" only so I would expect to have the output of the command I set, what am I doing wrong?