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

Discussion in 'Firefox' started by chuck, Nov 15, 2005.

  1. chuck

    chuck Guest

    References: <zdNGe.10$>
    In-Reply-To: <zdNGe.10$>
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    Lines: 47
    Message-ID: <KiNGe.20$>
    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
    chuck, Nov 15, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chuck
    Replies:
    0
    Views:
    642
    chuck
    Jul 30, 2005
  2. =?Utf-8?B?VG9tIFA=?=

    WPA requires ans XP Pro Admin acct??

    =?Utf-8?B?VG9tIFA=?=, Dec 6, 2005, in forum: Wireless Networking
    Replies:
    4
    Views:
    643
    =?Utf-8?B?Z2xy?=
    Jan 2, 2006
  3. Replies:
    5
    Views:
    413
  4. me
    Replies:
    3
    Views:
    2,339
    VanguardLH
    Sep 29, 2008
  5. kent42c
    Replies:
    4
    Views:
    326
    kent42c
    Nov 21, 2005
Loading...

Share This Page