IllegalOperation38
Technical User
I can do this Linux command from TCL
set USER_NAME [exec id -nu]
puts $USER_NAME
IllegalOperation
But when I do a
set SERVER_STATUS [exec /etc/rc.d/init.d/vsftpd status]
I get
vsftpd is stopped
child process exited abnormally
The "vsftpd is stopped" is what I want, but the "child process exited abnormally" is what I want to lose, nor does the variable get set either due to this problem.
I can issue this same command from the BASH shell and get the desired results without the error.
bash> /etc/rc.d/init.d/vsftpd status
vsftpd is stopped
But from TCL this doesnt want to work for some reason.
Can anyone clue me in?
set USER_NAME [exec id -nu]
puts $USER_NAME
IllegalOperation
But when I do a
set SERVER_STATUS [exec /etc/rc.d/init.d/vsftpd status]
I get
vsftpd is stopped
child process exited abnormally
The "vsftpd is stopped" is what I want, but the "child process exited abnormally" is what I want to lose, nor does the variable get set either due to this problem.
I can issue this same command from the BASH shell and get the desired results without the error.
bash> /etc/rc.d/init.d/vsftpd status
vsftpd is stopped
But from TCL this doesnt want to work for some reason.
Can anyone clue me in?