tput error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux