Re: Fwd: Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Wiggins d Anconia
> Xiangli Zhang wrote: > > Aha, are you trying to open the vi editor? Then I don't think I'm able > to help you; not sure if it's even possible to do that from a CGI script. > > > main page"test.pl" [readonly] 6L, > > 95C#!/usr/bin/perl -w print "Content-Type: tex

Fwd: Re: Fwd: Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Xiangli Zhang
Gunnar:   If vi editor cannot be called through perl cgi under web browser, what I can do if i want to call an application in my script. My case is "phrap"- a perl application, which can be used like phrap fasta1 at terminal to generate several text files.   Thanks a lot,   justinNote: forwarded m

Re: Fwd: Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Gunnar Hjalmarsson
Xiangli Zhang wrote: Gunnar Hjalmarsson wrote: system(" perl test1.pl"); This is a better way to run another Perl program: eval "require 'test1.pl'" or die "Couldn't require test1.pl: $@"; system("phrap fasta1"); system("vi test.pl"); system("phrap fasta1") == 0 or die "'phrap fasta1' fail

Fwd: Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Xiangli Zhang
Dear Gunnar: Following your instruction, I ran my cgi under internet browser Mozzilla and at terminal. However, it output correctly for terminal(it automatically open vi editor and open the file "test.pl), but some error occurred for browser. The following is my result of the browser. Thanks a lo

Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Gunnar Hjalmarsson
Xiangli Zhang wrote: I want to call an application in cgi file, the application runs when i run the cgi file at terminal (which outputs several files), but the application called is not executed in the web browser, since no files are generated. You should test if the commands were successful! sys

how to call an application in cgi and let it run in web browser

2004-07-12 Thread Xiangli Zhang
Note: forwarded message attached. __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail --- Begin Message --- I want to call an application in cgi file, the application runs when i run the cgi fi

how to call an application in cgi and let it run in web browser

2004-07-11 Thread Xiangli Zhang
Note: forwarded message attached. Do you Yahoo!? Yahoo! Mail - You care about security. So do we.--- Begin Message --- I want to call an application in cgi file, the application runs when i run the cgi file at terminal (which outputs several files), but the application called is not executed in

how to call an application in cgi and let it run in web browser

2004-07-11 Thread Xiangli Zhang
I want to call an application in cgi file, the application runs when i run the cgi file at terminal (which outputs several files), but the application called is not executed in the web browser, since no files are generated. Can anyone help me this issue? The following is my code (the last three