Link to home
Start Free TrialLog in
Avatar of hyjin
hyjin

asked on

How do I recv/trns Carriage Return in CGI script written in C?

Dear Sir/Ms.
     I just want to setup a CGI program(Written in C) which can change the password in the WWW interface.  And the CGI program accpept the Username, Old-Passwd and New-passwd, then it use fork() to generate a child process and create two pipe fdin/fdout to communicate the child process(the child process
is the telnet function on the destination host).  Then the child process use "passwd" command to change the passwd on the destination machine.  The program is working quite well under C shell.  But it really doesn't work under WWW interface, I think the reason is that httpd filters out all the Carriage Return so the command I issue from the parent can't reach the destination.

    Can you tell me how to receive and transmitt Carriage Return through httpd?
 What is  the Carriage Return turned into in the httpd?

     Thanks a lot.

    Please also send your reply to my E-mail box:

         mailto://hyjin@moon.bjnet.edu.cn

Yours,
Teddy
Mar 9, 1997
~
ASKER CERTIFIED SOLUTION
Avatar of chump
chump

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial