Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Firefox > Re: CGI won't run external program - Expect - ans'ed my own question

Reply
Thread Tools

Re: CGI won't run external program - Expect - ans'ed my own question

 
 
chuck
Guest
Posts: n/a
 
      11-15-2005
References: <zdNGe.10$(E-Mail Removed)>
In-Reply-To: <zdNGe.10$(E-Mail Removed)>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 47
Message-ID: <KiNGe.20$(E-Mail Removed)>
Date: Sat, 30 Jul 2005 09:49:39 -0600
NNTP-Posting-Host: 67.41.73.201
X-Trace: news.uswest.net 1122738474 67.41.73.201 (Sat, 30 Jul 2005 10:47:54 CDT)
NNTP-Posting-Date: Sat, 30 Jul 2005 10:47:54 CDT
Xref: number1.nntp.dca.giganews.com alt.fan.mozilla:22056

Found "1" small entry in the expect man page "... has problem in cron if
TERM not set ...". Hmmmm.. I wonder. ... Well, Howdy Duddy :-/ What'da
know.

chuck wrote:
> I'll try to keep this short.
>
> I have a web page. Uses forms. Submit button sends it to
> cgi-bin/prog1.cgi. Which reads:
>
> ----------------------------------------
> #!/bin/bash
>
> echo "Conten....
> ..
> echo "<html....
> echo "Now is the tim...
> echo "2+2" | bc
> ls -l /tmp | head
>
> /usr/bin/expect /var/www/cgi-bin/tune.exp
>
> echo "Again is the time...
>
> --------------------------------------------
> I get:
>
> Now is the time
>
> 4
> total 5212
> -rw------ 1 apache apache 0 Jul 29.....
> etc....
> Again is .....
> ------------------------
>
> The expect script? - nada - doesn't run - nothing!
> Now if I run from the command line - it works just like I want it to work.
> -----------------
> total 5212
> -rw------ 1 apache apache 0 Jul 29.....
> etc....
> [ all of the output of the expect script....]
> Again is .....
> ---------------------
>
> Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run CGI scripts in own webserver Kevin Kevin Ruby 7 03-22-2011 09:03 AM
how to expect eof with expect+pty Simon Strandgaard Ruby 4 12-20-2006 04:00 PM
Bug in $obj->expect() ... ? (Expect 1.15) Phil Perl Misc 0 07-07-2006 07:25 AM
CGI won't run external program - Expect chuck Firefox 0 07-30-2005 03:44 PM
CGI calling an expect script problem erik Perl Misc 7 03-24-2005 02:05 PM



Advertisments