would like to evaluate the stderr msg genereated by malfunctioning call to a shell command:
script will return OK if command works but will return an empty string otherwise.
How can I evaluate the stderr message "permission denied" if rsh failes? Any idea?
Code:
set pipe [open "| rsh $host -l $user echo OK" r ]
puts [gets $pipe]
script will return OK if command works but will return an empty string otherwise.
How can I evaluate the stderr message "permission denied" if rsh failes? Any idea?