thanks owen.
I tried as your suggestion as the following way, and
it give the error message.
system("/usr/local/bin/phredPhrap") == 0 or die
"'/usr/local/bin/phredPhrap' failed: $?";
output message:
The server encountered an internal error and was
unable to complete your request.
Error message:
'/usr/local/bin/phredPhrap' failed: 512 at
/srv/www/cgi-bin/phrap/sequence.cgi line 50.
regards,
justin
Note: forwarded message attached.
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail--- Begin Message ---
On Sun, 18 Jul 2004, Xiangli Zhang wrote:
> In my perl cgi(say sequence.cgi), i want to call an
> installed perl script application (phredPhrap under
> directory /usr/local/bin).
>
> I use system("phredPhrap"); to call it in my cgi file.
>
> When I run my cgi file at command terminal
> "phredPhrap" is executed, it works, but at web
> browser, "phredPhrap" was not executed actually.
>
> How may call phredPhrap? Anybody can give me some
> suggestion?
>
You may have to give the full path name for phredPhrap
> system("phredPhrap");
eg, system ("/usr/somewhere/bin/phredPhrap");
phredPhrap is probably in you path for the command line, but that's not
appropriate for a cgi script
Owen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--- End Message ---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>