🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

What is wrong with this script?

Started by
0 comments, last by DanTheRocker 22 years, 5 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