in reply to Re: Perl execution of MPIRUN commands
in thread Perl execution of MPIRUN commands

The source is provided by me! Thats the line... mpirun causes the error... but the same command works fine if run directly from command prompt....
  • Comment on Re: Re: Perl execution of MPIRUN commands

Replies are listed 'Best First'.
Re: Re: Re: Perl execution of MPIRUN commands
by tilly (Archbishop) on Feb 16, 2004 at 16:28 UTC
    Try running the command from a command prompt while logged in as the user that the webserver runs, with the environment that the webserver has.

    There is a difference between how you are running the command and how the webserver does (as evidenced by the fact that the webserver produces an error). Figure out what that difference is and you are more than half-way to solving your problem.

      Erm... I have run it from the web server account=="nobody".

      Any other ideas?

        You didn't fully implement my first one.

        Same user and same environment!

        If it is running as a CGI command, it is being passed a lot of information in %ENV. Try changing the code that has trouble to something like this:

        #! /usr/bin/perl use Data::Dumper; print "text/plain\n\n"; print Dumper \%ENV;
        That gives you the environment. Do a bunch of export foo=bar to set up that environment and see what happens when you run this offline.

        There is a difference between what you are executing and what the webserver does. You need to track that down.