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