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

2004-07-12 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

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!? Yahoo! Mail - You care about security. So do we.---BeginMessage--- 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-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 ---BeginMessage--- I want to call an application in cgi file, the application runs when i run the cgi file

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. snip You should test if the commands were

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Randal L. Schwartz [EMAIL PROTECTED] wrote: Werner == Werner Otto [EMAIL PROTECTED] writes: Werner $email = param(email); Do *not* send email to addresses taken from forms. Ever. HTML + CGI + E-Mail = VeryBadThing... Well, at any rate, the best place to see if you are listed is at:

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: one submitted address, the messages are plain text, and the size is limited). If some idiot would use it for sending unsolicited messages (has never happened so far), I would know and would be able to take actions. The only realistic option is

Re: Mailing Script

2004-07-12 Thread Gunnar Hjalmarsson
Bill Jones wrote: Gunnar Hjalmarsson wrote: Gunnar Hjalmarsson wrote: If you want to contact me privately, you can click the link below. If you fill the form, including your own email address, and submit it, you'll receive a copy of the message. That's for your record, for your convenience.

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

perl.beginners.cgi Weekly list FAQ posting

2004-07-12 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

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' failed: $?;

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 tocall 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

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: snip 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 pagetest.pl [readonly] 6L, 95C#!/usr/bin/perl -w print Content-Type:

PERL CGI on IIS

2004-07-12 Thread Mike Garner
I've written a PERL cgi script that I'd like to use to reset a user's password within Microsoft's Active Directory. The script runs well from the command line of the web server and from any other windows box (with PERL installed). However, when it is executed from IIS, the security of IIS

Art Gallery Perl Script.

2004-07-12 Thread Joe Echavarria
Hi there, I am looking for an Art Gallery Perl script where i can put the frame painting, a description of the art, some text..., something like that. where can i find it ?, i won't reinvent the wheel... Free or paying.., prefer free.. Thanks. Joe.

RE: Packing a Hexadecimal String

2004-07-12 Thread Youssef Eldakar
It does look like a Unicode issue. On the machine where I was having trouble, $LANG was: en_US.UTF-8 Removing UTF-8 from $LANG eliminates the problem: $ env LANG=en_US perl -e 'print pack(H*,208010)' | od -Ax -tx1 00 20 80 10 03 Thank you so much for pointing me to the source of

Re: Regex for numbers and text

2004-07-12 Thread Jeff 'japhy' Pinyan
On Jul 10, Jerry Preston said: Jerry 2.74 4.5 mon Mark -14-10.75 -10 new /(\w+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(\w+)/; Have you considered just using split()? my @fields = split; # or my ($name, $x, $y, $z, $whatever) = split; --

Re: My first perl script

2004-07-12 Thread John W . Krahn
On Sunday 11 July 2004 14:12, Paul Smith wrote: John W.Krahn wrote: #!/usr/bin/perl use warnings; use strict; ( $^I, @ARGV ) = ( '.bak', 'text_file' ); while ( ) { s/^#// if /Zyloric/; print; } b Thanks, John and Gunnar. (Please, be patient with my ignorance.)

Could you please help with a PERL/TK question.

2004-07-12 Thread Marco Perl
Hi, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors?

RE: Could you please help with a PERL/TK question.

2004-07-12 Thread Toby Stuart
-Original Message- From: Marco Perl [mailto:[EMAIL PROTECTED] Sent: Monday, 12 July 2004 4:19 PM To: ; [EMAIL PROTECTED] Subject: Could you please help with a PERL/TK question. Hi, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up

how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Marco Perl
Greetings, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors?

Launching scripts via command prompt [WAS RE: Could you please help with a PERL/TK question.]

2004-07-12 Thread Tim Johnson
Just one quick note: I've seen a lot of people say that this is the way to run a script from the command-line, but any script that you can run by double-clicking should also be able to be run by just typing in the name of the script at the command-line (provided you are in the same directory

RE: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Tim Johnson
Please don't send the same question to the list twice in a row. The truth is there aren't many people answering questions on a Sunday night (US), but re-sending the question doesn't increase your chances of having your question answered, but some people really get irked by the extra traffic on

Pop up calendar

2004-07-12 Thread Melis Mutlu
Hi, I have a form with a date field (created by CGI::Quickform). I would like to add a pop up calendar so I can pick dates easily. Does anybody know how I can do that? Is there any module I can use for that? Regards, Melis __ Do you Yahoo!?

[SOLVED] RE: Could you please help with a PERL/TK question.

2004-07-12 Thread Marco Perl
adding STDIN; did not work, but running it from cmd shell did. thank you so much. regards, Marco. --- Toby Stuart [EMAIL PROTECTED] wrote: -Original Message- From: Marco Perl [mailto:[EMAIL PROTECTED] Sent: Monday, 12 July 2004 4:19 PM To: ; [EMAIL PROTECTED] Subject: Could

[SOLVED] RE: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Marco Perl
my first email's subject line was not good/descriptive. so I tried a better subject line on my second email. in any rate, thanks for traffic update/info. I am new on this and I appreciate your concern. regards, Marco. --- Tim Johnson [EMAIL PROTECTED] wrote: Please don't send the same question

EOF and library question...

2004-07-12 Thread Kathryn Tate
How does one signal to the compiler that the EOF has been reached when writing a library file? Thanks, Kathryn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: My first perl script

2004-07-12 Thread Gunnar Hjalmarsson
Paul Smith wrote: Thanks, John and Gunnar. You're welcome. (Please, be patient with my ignorance.) I for one am, don't worry. But I'm *not* patient with suspected laziness. ;-) I'd like to see you post some code, where you show us that you are seriously trying to learn, and where you have at least

Re: My first perl script

2004-07-12 Thread Paul Smith
(Please, be patient with my ignorance.) I for one am, don't worry. But I'm *not* patient with suspected laziness. ;-) I'd like to see you post some code, where you show us that you are seriously trying to learn, and where you have at least tried to solve this new problem. Thanks, Gunnar. I

Shareit information via Perl

2004-07-12 Thread Nicolay A. Vasiliev
Hello, there! I am trying to connect into ShareIt system. I need to refresh my sales information automatically. I know LWP is power to help me, but I try and get nothing positive yet. What I am doing: #!/usr/bin/perl use LWP::UserAgent; use LWP::Simple; use HTTP::Request::Common qw(POST); use

Re: EOF and library question...

2004-07-12 Thread JupiterHost.Net
Kathryn Tate wrote: How does one signal to the compiler that the EOF has been reached when writing a library file? Hello, Foo.pm: package Foo; ... 1; Then in your script use Foo; the 1; returns true so use knows it was successful :) HTH Lee.M - JupiterHost.Net Thanks, Kathryn -- To unsubscribe,

Re: EOF and library question...

2004-07-12 Thread Wiggins d Anconia
Kathryn Tate wrote: How does one signal to the compiler that the EOF has been reached when writing a library file? Hello, Foo.pm: package Foo; ... 1; Then in your script use Foo; the 1; returns true so use knows it was successful :) While true, that doesn't signal

Re: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread William . Ampeh
Simply wrap it around a batch file with a pause at the end. That is: @echo off path\to\my\script echo . echo . echo . - D O N E - echo . echo . pause __ William Ampeh (x3939) Federal Reserve Board -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Pop up calendar

2004-07-12 Thread Charles K. Clarkson
Melis Mutlu [EMAIL PROTECTED] wrote: : I have a form with a date field (created by : CGI::Quickform). I would like to add a pop up : calendar so I can pick dates easily. Does : anybody know how I can do that? Is there any : module I can use for that? If you can use a Javascript solution. I

garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Ken Rearick
I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to reduce the character

Re: MIME coding flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread jason corbett
Here is the script that I am using. Remember that the script creates the file perfectly and stores the file with data in a folder on the server. The emailed copy is being sent out blank. Thanks, JC #!/usr/bin/perl use strict; use DBI; use lib

Re: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Wiggins d Anconia
I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to reduce the

perl.beginners Weekly list FAQ posting

2004-07-12 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: EOF and library question...

2004-07-12 Thread JupiterHost.Net
package Foo; ... 1; Then in your script use Foo; the 1; returns true so use knows it was successful :) While true, that doesn't signal an EOF to the compiler, that is just a statement. Any last statement's value can be used as the library's true/false return. To tell the compiler to stop reading

Re: MIME coding flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread Jenda Krynicky
From: jason corbett [EMAIL PROTECTED] Here is the script that I am using. Remember that the script creates the file perfectly and stores the file with data in a folder on the server. The emailed copy is being sent out blank. Seems the problem IS in what I said. Try to move the

RE: Pop up calendar

2004-07-12 Thread West, William M
On Mon, 12 Jul 2004 00:29:52 -0700 (PDT), [EMAIL PROTECTED] (Melis Mutlu) wrote: Hi, I have a form with a date field (created by CGI::Quickform). I would like to add a pop up calendar so I can pick dates easily. Does anybody know how I can do that? Is there any module I can use for that?

How to speed up processing two big files

2004-07-12 Thread Tang, Hannah (NIH/NLM)
Hi, I have two big text files, I need to read one line from first file, write some information from this line to a new file, and search second file to find lines with same control_id, and write more information to the new file, I wrote in perl, but it tooks half day to finish joining the two

Re: MIME coding flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread jason corbett
I will move the close(ERRORLOG) and the close(OUTFILE) as you pointed out and retry. As for the parameters, I am passing parameters to only certain functions. I will however take note of the mistake with logresults(). Do you think that not passing parameters to other functions is incorrect? I

RE: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Wiggins d Anconia
Please group reply so others can help and be helped, and so your posts don't get accidentally ignored... also please bottom post. This is perl, v5.8.0 built for sun4-solaris Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU

Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 10:59, Tang, Hannah (NIH/NLM) wrote: Hi, Hello, I have two big text files, I need to read one line from first file, write some information from this line to a new file, and search second file to find lines with same control_id, and write more information to the

Re: My first perl script

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 01:47, Paul Smith wrote: Thanks, Gunnar. I understand your point of view. Meanwhile, John Krahn has kindly provided a solution for my problem, which I very much thank. However, to convince you that I was trying to solve the problem by myself, I quote below the script

Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 12:20, John W. Krahn wrote: open SINK, 'newFile.dat' or die can't open the newFile.dat: $!; for my $id ( sort { $control_ids{ $a }{ order } = $control_ids{ $a }{ order } } keys %control_ids ) { Oops, that _should_ be: for my $id ( sort { $control_ids{ $a }{ order } =

directory and files

2004-07-12 Thread Thomas Browner
Can someone help me with this scrip that I am writing. I am trying to get file and directory create date and if it is 7 days old then delete it. I hoping someone can point me to a starting point. Thanks *Thomas * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: directory and files

2004-07-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Thomas Browner wrote: Can someone help me with this scrip that I am writing. I am trying to get file and directory create date and if it is 7 days old then delete it. I hoping someone can point me to a starting point. Thanks *Thomas * You should be able to use File::Find and

Clearing up Google history

2004-07-12 Thread William . Ampeh
How do I clear up my google history (IE history can be cleared via Tools, Options). That is, from any browser, when a user enters www.google.com, the user is presented with a dialog box, any previously entered text is stored, how do I clear or turn off the history caching feature in google?

RE: Clearing up Google history

2004-07-12 Thread John Pretti
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: Clearing up Google history How do I clear up my google history (IE history can be cleared via Tools, Options). That is, from any browser, when a

Re: MIME coding flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 08:21, jason corbett wrote: Here is the script that I am using. Remember that the script creates the file perfectly and stores the file with data in a folder on the server. The emailed copy is being sent out blank. #!/usr/bin/perl use warnings; use strict; use DBI;

in a TK-GUI how to show grand-children of a child from toolbar.

2004-07-12 Thread Marco Perl
I developed a TK-module for ActivePerl in Win-2000 env. this script has a toolbar with 5 toolbar-items. one of these items called Tests has a child called Child... who has grand-children [choice1, choice2, choice3]. I want to click on Child... and diplay grand-children to its right. i.e. Tests

RE: Clearing up Google history

2004-07-12 Thread Tim Johnson
This isn't a Perl question. Please post it elsewhere. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:37 PM To: [EMAIL PROTECTED] Subject: Clearing up Google history How do I clear up my google history (IE history can be cleared via

Re: Pop up calendar

2004-07-12 Thread Owen
On Mon, 12 Jul 2004 00:29:52 -0700 (PDT) Melis Mutlu [EMAIL PROTECTED] wrote: I have a form with a date field (created by CGI::Quickform). I would like to add a pop up calendar so I can pick dates easily. Does anybody know how I can do that? Is there any module I can use for that? You

Re: directory and files

2004-07-12 Thread Gunnar Hjalmarsson
Thomas Browner wrote: Can someone help me with this scrip that I am writing. I am trying to get file and directory create date and if it is 7 days old then delete it. I hoping someone can point me to a starting point. This article may give you an idea:

Re: Clearing up Google history

2004-07-12 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: How do I clear up my google history (IE history can be cleared via Tools, Options). Hhrruh? I think you have the wrong mailing list :) That is, from any browser, when a user enters www.google.com, the user is presented with a dialog box, any previously entered text is

Re: Regex for numbers and text (ANS)

2004-07-12 Thread Adam
Jerry, Jerry What am I doing wrong? Such an open question. I assume you mean what is wrong with your code. To answer, it isn't doing what you want it to do :-) Jerry I am trying to setup a single regex Jerry to breakdown the following lines: Jerry Jerry Jerry2.74 4.5

Re: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Randy W. Sims
Ken Rearick wrote: I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to

RE: Regex for numbers and text

2004-07-12 Thread Jerry Preston
Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? Thanks, Jerry -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Sunday, July 11, 2004 9:20 PM To: Gunnar Hjalmarsson Cc: [EMAIL PROTECTED] Subject: Re: Regex for numbers

Re: Regex for numbers and text

2004-07-12 Thread Gunnar Hjalmarsson
Jerry Preston wrote: Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? Have you seen any of the Perl documentation sections that deals with regular expressions? This one, for instance, for a quick overview:

Re: Regex for numbers and text

2004-07-12 Thread Randy W. Sims
Jerry Preston wrote: Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? This is why I like to recommend Regexp::Common. But... Here is an example from Jeffrey Friedl's, Mastering Regular Expressions: /-?([0-9]+(\.[0-9]*)?|\.[0-9]+)/ perlified:

Re: pls help

2004-07-12 Thread u235sentinel
shashideep nuggehalli wrote: Thank you for ur concern . Btw , I do not really appreciate the use of the term sucker and I am not sure if such language could be used in public mailing lists with out understanding the proper reasons for the mail. I simply agreed with the other poster as pasted

RE: Regex for numbers and text

2004-07-12 Thread Tim Johnson
Another good module for helping you understand what a complicated regex MEANS (which will help you know how to fix it) is YAPE::Regex::Explain. It also helps with some issues where a regex may be working, but not for the reason you think. -Original Message- From: Jerry