Archived

This topic is now archived and is closed to further replies.

DanTheRocker

What is wrong with this script?

Recommended Posts

DanTheRocker    122
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;

Share this post


Link to post
Share on other sites
C-Junkie    1099
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*

Share this post


Link to post
Share on other sites