> 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[m[m[0m[H[2J[24;1H"test.pl" [readonly] 6L,
> > 95C[1;1H#!/usr/bin/perl -w print "Content-Type: tex
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
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
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