|
Problem with SSH running from CGI script.
Best I can tell, this is a CentOS specific problem, although there is very little information on it, so please forgive me if I posted in the wrong forum.
I'm running a Bash CGI script to interface with an existing bash backend script. Everything works fine except for the SSH connection. I open an SSH connection and run 'screen' to run my backend script. At first I was getting a "Must be connected to a terminal" error which I remedied by running "ssh -t -t", but now the following error appears in the Apache error log:
tcgetattr: Invalid argument
I've looked this up and what few results I've come up with seem to show this an RHEL 5 error, the only problem is the servers I'm currently testing on are RHEL 4 (backport maybe?).
The issue seems to be that even with ssh -t -t, the OS is still refusing to allocate a pseudo terminal for the script to run in
Anybody have a clue what I might be able to do with this?
|