FouRPlaY has asked for the wisdom of the Perl Monks concerning the following question:
use CGI; $cgi = new CGI; $cgi->use_named_parameters; $name = $ENV{'QUERY_STRING'}; $thefile = "/u/sdrupert/public_html/cgi-bin/tempout.finger"; $create = "/usr/bin/touch " . $thefile; $run = "/.software/local/.admin/bins/bin/finger " . $name . "\@math >> + " . $thefile; $gone = "rm " . $thefile; system ($create); system ($run); open (INFO, "<$thefile"); @ffile = <INFO>; close (INFO); system ($gone); print $cgi->header; print $cgi->start_html(-title=>'Finger ' . $name . '@math',-bgcolor=>' +white'); foreach $line (@ffile) { $line =~ s/[ ]{2,}/!/g; @new = split (/!/, $line); foreach $newline (@new) { print $newline . "<br>"; } } print $cgi->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finger Me!
by btrott (Parson) on Oct 25, 2000 at 02:03 UTC | |
|
Re: Finger Me!
by merlyn (Sage) on Oct 25, 2000 at 02:11 UTC | |
|
Re: Finger Me!
by Fastolfe (Vicar) on Oct 25, 2000 at 02:25 UTC | |
|
Re: Finger Me!
by Malach (Scribe) on Oct 25, 2000 at 02:05 UTC |