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
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
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
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
--- 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:
--- 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
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.
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
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
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: $?;
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
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 page[m[m[0m[H[2J[24;1Htest.pl [readonly] 6L,
95C[1;1H#!/usr/bin/perl -w print Content-Type:
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
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.
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
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;
--
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.)
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?
-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
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?
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
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
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!?
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
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
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
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
(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
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
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,
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
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
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
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
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
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
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):
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
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
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?
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
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
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
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
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
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 } =
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:
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
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?
-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
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;
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
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
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
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:
[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
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
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
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
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:
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:
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
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
63 matches
Mail list logo