I am running Perl CGI scripts via the Apache v1.3.28 server in a Unix environment, is there settings that should be taken care of when running command line in this particular case for mpirun (the script alias has already been set up -
ScriptAliasMatch .../cgi-bin/... /usr/users/$1/public_html/cgi-bin/$2) :

The line in Perl script is :

`/usr/local/apps/mpich/bin/mpirun -machinefile /usr/users/ueug/machine +s.ALPHA -np 2 /usr/users/ueug/mpiblast/src/mpiblast --config-file=/us +r/users/ueug/mpiblast/mpiblast.conf -p blastn -d ecoli.nt -i /usr/use +rs/ueug/public_html/cgi-bin/upload/100seq -o /usr/local/tmp1/d.txt 2> + /usr/local/tmp1/err.txt`;

The relevant error is :

/usr/local/apps/mpich/bin/mpirun: pwd: read error in .. /usr/local/apps/mpich/bin/mpirun: test: argument expected

Is there anything that should be taken care of when running scripts of this nature? Even when "nobody" user account has been set to a writable directory such that I could execute the command in "nobody"'s account I still could not execute the command via Perl script.

Is it a problem with the server configuration since "nobody"'s account can execute the command?

BazB added code tags


In reply to Perl execution of MPIRUN commands by tesswulf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.