You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marian Cicel <ma...@cicel.sk> on 1998/01/12 15:58:28 UTC

mod_cgi/1656: Expect as a CGI script does not work

>Number:         1656
>Category:       mod_cgi
>Synopsis:       Expect as a CGI script does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jan 12 07:00:00 PST 1998
>Last-Modified:
>Originator:     marian@cicel.sk
>Organization:
apache
>Release:        1.2.1
>Environment:
Linux alice 2.0.27 #2 Tue Jul 8 12:41:43 MET DST 1997 i586
>Description:
I'm trying to use Expect as a CGI script:
#!/usr/local/bin/expect 
puts "Content-type: text/HTML\n"
spawn /bin/telnet xxx
...

It can't get trough "spawn". It creates two processes for pseudoterminal
and stands there. 
Script works fine when run under "nobody" user.
>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]