tput error



Hallo,

i have the a problem with ssh:

i try to shutdown 30 or more systems, i generate a shell script (death.sh) to do this. It looks like this:

ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx001'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx002'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx003'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx004'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx005'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx006'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx007'halt;' &

If i start it direct i a term, all is fine and all systems are down. But i have to schedule the task by a php-script.
This php-script start with exec("death.sh) the shell-script, the php-script is start by cron ( i have to use php, because of the framework i use, i have no choice ;-(
The a got this errors:

tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"

and all systems are alive, no "halt" reach a system ;-(

If i dont use the "-T" flag i got this error too:

"Pseudo-terminal will not be allocated because stdin is not a terminal"

i try the "-t" flag to, same error, and all alive.

I hope you can help me, thx

--
Christian Hennig <christian.hennig@xxxxxxxxxxxxxx>



Relevant Pages

  • Re: run program via ssh
    ... I can now login without telling what my password is. ... > (I already had the .ssh directory on that server) ... tput: No value for $TERM and no -T specified ... You are about to enter another dimension, ...
    (alt.os.linux.suse)
  • Re: SSH and "screen control".
    ... I'm trying to switch users to SSH from Attachmate's ... The application uses a forms-type display, ... ${TPUT} clear ...
    (comp.security.ssh)
  • Re: tput error
    ... with white space between the hostname and the command to be executed on the remote server ... Christian Hennig wrote: ... i have the a problem with ssh: ... tput: unknown terminal "unknown" ...
    (SSH)
  • ssh tput error tput: No value for $TERM and no -T specified
    ... I've been having this wierd error message when I ssh into my server: ... 'tput: No value for $TERM and no -T specified' ... Matt Price ...
    (Debian-User)