What is wrong with this script?

Started by
0 comments, last by DanTheRocker 22 years, 3 months ago
Can you find anything wrong? It is run on a UNIX server: # # shows who is logged on to the server # #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; my $who_cmd = ''bin/who''; my &who = `$who_cmd`; print < Who is on the server

Who is on the server



$who

</body> </html> EOM exit;
-Dan
Advertisement
use /bin/who

bin/who means ./bin/who

you you are trying to run ( for example in my set up):

/public/cgi-bin/bin/who

other than that, dunno. i don''t know perl *grin*

This topic is closed to new replies.

Advertisement