LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-13-2009, 09:44 AM   #1
ehowe
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
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?
 
Old 04-14-2009, 10:13 AM   #2
ehowe
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, I was able to "fix" the problem by not running screen on the remote server. It still throws the error but the process runs anyways.
 
  


Reply

Tags
centos, cgi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cgi shell script: ssh not working kitmui Programming 2 04-21-2010 02:46 PM
i get an error message running php script inside a cgi script. repolona Linux - Software 0 02-22-2007 09:10 PM
cgi script not running furqan_sindhu Programming 1 06-05-2006 08:42 AM
SSH in a CGI script michedlp Programming 7 04-16-2004 10:58 AM
Apache CGI Problem : Browser not running script Zaknafien Linux - Software 3 12-31-2003 01:16 PM


All times are GMT -5. The time now is 06:54 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration