Jump to content
  • Advertisement

Archived

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

DanTheRocker

What is wrong with this script?

This topic is 6002 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

</body> </html> EOM exit;

Share this post


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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!