file.pl cannot be executed in CGI

2004-10-09 Thread Xiangli Zhang
= Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X1 phone: 604-9399181 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

how to execute a perl file in cgi?

2004-10-09 Thread Xiangli Zhang
Can anybody tell me how to execute a perl file in perl cgi? E.g "test.cgi " and "file.pl", I want to add one line to execute file.pl in test.cgi. How I can do it? Justin Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X

Re: undefined value error

2004-10-02 Thread Xiangli Zhang
se_complement { my $self = shift; $self->{seq} = rc($self->{seq}); return $self } sub rc { my $rseq = shift; $rseq = reverse $rseq; $rseq =~ tr/ATGCatgc/TACGtacg/; return $rseq; } sub scan { my $self = shift; my $qseq = uc(shift); my $degen = shift; my

Fwd: Re: undefined value error

2004-10-02 Thread Xiangli Zhang
you Yahoo!?vote.yahoo.com - Register online to vote today!--- Begin Message --- Xiangli Zhang wrote: I got the following error when one cgi file 'test.cgi' was called from HTML: Can't call method "sequence" on an undefined value However I can run 'test.cgi'

undefined value error

2004-09-23 Thread Xiangli Zhang
"secondFile"); my $test1=$seq1->next_seq(); my $test2=$seq2->next_seq(); my $s1=$test1->sequence(); my $s2=$test2->sequence(); print "input1===$s1\n"; print "input2===$s2\n"; ($sa,$sb)=DNAalign::align($test1,$test1); ***$result1=$sa->sequence(); ***$result2=

undefined value error

2004-09-23 Thread Xiangli Zhang
); my $s1=$test1->sequence(); my $s2=$test2->sequence(); print "input1===$s1\n"; print "input2===$s2\n"; ($sa,$sb)=DNAalign::align($test1,$test1); $result1=$sa->sequence(); $result2=$sb->sequence(); print "\n"; print "result1=== $result1\n"; pri

undefined value error

2004-09-23 Thread Xiangli Zhang
); my $s1=$test1->sequence(); my $s2=$test2->sequence(); print "input1===$s1\n"; print "input2===$s2\n"; ($sa,$sb)=DNAalign::align($test1,$test1); $result1=$sa->sequence(); $result2=$sb->sequence(); print "\n"; print "

Fwd: Re: how to pass a string variable via URL redirection

2004-08-21 Thread Xiangli Zhang
Anyone know example how to use "require" function passing string variable? thanks, Note: forwarded message attached. ===== Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X1 phone: 604-9399181 __ Do you Y

how to pass a string variable via URL redirection

2004-08-20 Thread Xiangli Zhang
nks a lot, justin Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X1 phone: 604-9399181 - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.

GD::graph::bars

2004-08-16 Thread Xiangli Zhang
OTECTED]) or die $sg->error; print "Content-type: image/png\n\n".$si->png; print $si->png; #try second graph = Xiangli Zhang (Justin) 306-310 Decaire Street, Coquitlam BC, Canada, V3K 6X1 phone: 604-9399181 __ Do You Yahoo!? Tir

Fwd: Re: how to call installed program

2004-07-18 Thread Xiangli Zhang
ut! 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&

how to call installed program

2004-07-18 Thread Xiangli Zhang
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"

perl cgi uploaded file is empty

2004-07-17 Thread Xiangli Zhang
I use perl cgi to upload file(any type: text or image) from web browser. The file was created, but is empty. The following is my html form file and perl cgi called by the form. Can any one help me this issue? Justin perl cgi file: #!/usr/bin/perl use CGI; $query = new CGI; print "Content-t

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

2004-07-12 Thread Xiangli Zhang
forwarded message attached.__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Begin Message --- Xiangli Zhang wrote: Gunnar Hjalmarsson wrote: system(" perl test1.pl"); This is a bette

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

2004-07-12 Thread Xiangli Zhang
to the webmaster ([EMAIL PROTECTED]), giving this error message and the time and date of the error. Note: forwarded message attached. __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_m

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

beginning question for cgi

2004-07-04 Thread Xiangli Zhang
Hi,all: Can anybody help me the question? I am using apache 2.0 in redhat 9.0. I put my perl cgi script under var/www/cgi-bin my souce code(simple.cgi) #!/usr/local/bin/perl use CGI qw/:standard/; print header(), start_html(-title=>'Wow!'), h1('Wow!'), 'Look Ma, no hands!',