#!/bin/ch /* Example Ch CGI program that displays the time in plain ASCII text using system() call */ #include int main() { setbuf(stdout,NULL); /* turn off the I/O buffer so that output will be printed out before system() call */ printf("Content-type: text/plain\n\n"); printf("REMOTE_HOST= %s\n", getenv("REMOTE_HOST")); system("/usr/bin/date"); }