Hi!
I would like to run some scripts and test their type.
I've tried something like
set run_script "nawk -f $temp" (where $temp is the script name)
if [catch {open "|$run_script|& cat"} input] {
# it's an awk script
}
else
{
set run_script $temp # it's a Cshscript
...
}
Is it the best way to do this and how can I see any error messages and output generated by the script
Another question: How can I test that someone has Tcl/Tk installed?
Cheers,
Fabien
I would like to run some scripts and test their type.
I've tried something like
set run_script "nawk -f $temp" (where $temp is the script name)
if [catch {open "|$run_script|& cat"} input] {
# it's an awk script
}
else
{
set run_script $temp # it's a Cshscript
...
}
Is it the best way to do this and how can I see any error messages and output generated by the script
Another question: How can I test that someone has Tcl/Tk installed?
Cheers,
Fabien