Operating System - Linux
1753508 Members
5124 Online
108795 Solutions
New Discussion юеВ

installing PSP remotely w/ ssh

 
Nick Bedi
Occasional Contributor

installing PSP remotely w/ ssh

So I've copied the PSP over w/ scp to the remote machine along with a txt file with the options I want set.

If I ssh into the remote server and issue the command "sudo ~/compaq/csp/linux/install790.sh --nui --silent --inputfile ~/config.in"

This will install the PSP fine. However, If I try to do the install from my local machine vith the command

"ssh remotehost cd ~/compaq/csp/linux;sudo install790.sh --nui --silent --inputfile ~/config.in"

I will recieve a whole bunch of errors of the form

tput error: unknown terminal "unknown" and the install program will install the PSP but never exit with a return code.

This is problematic as I'm trying to script a mass deployment of the PSP to several hundred host, rather then log into each one and install the psp.

Anyone have any ideas?
2 REPLIES 2
~sesh
Esteemed Contributor

Re: installing PSP remotely w/ ssh

I'm wondering if it could be something to do with the environment variable setting in: /etc/profile

Have you checked the value for $TERM?
Stuart Browne
Honored Contributor

Re: installing PSP remotely w/ ssh

Nah, the issue is when you remote-execute a command via ssh, a psudeo-tty isn't fully associated with the connection, so it's in a funky state.

I've not tried it, but have you tried using 'ssh -n ....' or redirecting /dev/null into stdin?
One long-haired git at your service...