How do I recv/trns Carriage Return in CGI script written in C?
Posted on 1997-03-09
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:
Mar 9, 1997