Dan Muey wrote:
>
> But the subject says grep? :)
I see. It is a mailer problem. If you follow the thread you will see that this
response was
focused on Bob's comment concerning gep on file-names. I assumed here that the
question
concerned not the specific name of the function, but the logic
David T-G wrote:
> No, but I didn't know where to find it. As I said, I was following the
> man page, which seemed to do a lovely job of laying out the framework of
> a script. And yet at this point it fell down...
I've come to feel a bit leery of depending too much n man-pages [aka perldoc for
"John W. Krahn" wrote:
> "Thread"? Since your MUA doesn't provide a "References:" header it is
> not part of any "thread". Also your MUA seems to have elided any
> attribution to the text I typed above.
Well, I'll be darned. I wondered why so many messages ended up in the wrong place in
the
t
Trina Espinoza wrote:
> I have this command that reads logfiles.However, if the command isn't
> successful it gives me a standard error.
>
> my @logData= `program1 -log $data1 $data2`;
>
>
> The error looks like this:
>
> program1: '//mnt/leah/dir/': The system cannot find the file specified
I have this command that reads logfiles.However, if the command isn't successful it
gives me a standard error.
my @logData= `program1 -log $data1 $data2`;
The error looks like this:
program1: '//mnt/leah/dir/': The system cannot find the file specified.
*How do I read that error for the st
> I love perl - it rocks :D)
Me too.
1) they click on the banner and it takes them to index.pl.
2)
index.pl needs to be something like:
#!/usr/bin/perl -w
use strict;
my $page = ChoosePageBasedOnWhatBannerTheyClicked();
print "Location: http://somsite.com/$page\n\n";;
HTH
Dmuey
>
> Thanks
[EMAIL PROTECTED] wrote:
>
> Folks,
Hello,
> I used my linux box running perl 5.8 to develop a small script that
> scans a list of directories and searches for files that dont have the group
> set to "productn" or "dialup". It works great on my linux box, but now
> I need to run it on our sun sy
hello Rob,
to answer you question:
What do you mean by 'run' HTML pages? Are you writing
server-side CGI code?
YES - I am actualy wanting to create a hit counter that works when people
visit a site from an advertising banner - so the banner will run a
perlscript and depending on those results wil
> > Question:
> > I'm trying to use the links(); function which in the man page
> > says "returns a list of the links found in the last fetched
> > page. " However when I try
> >
> > @LINKS = $agent->links();
> > foreach(@LINKS){
> > print "$_\n";
> > }
> > it returns
On Thu, 11 Sep 2003 17:07:14 -0500, "Dan Muey" <[EMAIL PROTECTED]> wrote:
>
> `perldoc perlref` for a tutorial
>
That's the reference. You can also do:
perldoc perlreftut
For a "tutorial". Though I am not sure how recent the Perl needs
> Question:
> I'm trying to use the links(); function which in the man page
> says "returns a list of the links found in the last fetched
> page. " However when I try
>
> @LINKS = $agent->links();
> foreach(@LINKS){
> print "$_\n";
> }
> it returns
>
> WWW::Mechaniz
On Thu, 11 Sep 2003 12:46:24 +
"Anadi Taylor" <[EMAIL PROTECTED]> wrote:
>
> I am writting a hit counter and would like to get the IP address of a
> visitor to my site, can anyone point me in the right direction please.
You might look at Enviroment variables, partcicularly
$ENV{REMOTE_ADDR}
Each link returned is a WWW::Mechanize::Link object. You need to use the
methods supplied to get the info.
See:
http://search.cpan.org/~petdance/WWW-Mechanize-0.59/lib/WWW/Mechanize/Link.p
m
Use it like this...
@LINKS = $agent->links();
foreach (@LINKS) {
print $_->url(), "\n";
print $_->te
Question:
I'm trying to use the links(); function which in the man page says
"returns a list of the links found in the last fetched page. "
However when I try
@LINKS = $agent->links();
foreach(@LINKS){
print "$_\n";
}
it returns
WWW::Mechanize::Link=ARRAY(0x84a731c)
In article <[EMAIL PROTECTED]>, Jenda Krynicky wrote:
> From: Gary Stainburn <[EMAIL PROTECTED]>
>> I've got to tidy some data, including converting case. I need to
>> convert
>>
>> ANOTHER COMPANY NAME LTD **
>>
>> to
>>
>> Another Company Name Ltd **
>>
>> while retaining spaces.
> Hi
Howdy
>
> I'm using RedHat 8.0 and Perl 5.8.0
>
> I'm trying to install Time:HiRes from CPAN which is needed to
> use the File::Tail module. When running "Make" i get the error:
>
> Makefile:91: *** missing separator. Stop.
>
> Makefile.PL says:
>
> NOTE: if you get an error like thi
Dereferencing the array was exactly what I wanted. Thank you!
"James Edward Gray II" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Thursday, September 11, 2003, at 06:58 AM, Phillip E. Thomas wrote:
>
> > my %hash=();
> > my $mykey="key";
> > my $myval1=$myval2="test";
> >
>
James Edward Gray II wrote:
> On Wednesday, September 10, 2003, at 10:04 PM, sum wrote:
>
>> Dear all
>>
>> I found that stat command problems, when the file is over 2GB , it
>> cannot return any result when i use stat command. The following are
>> the information:
>
>
>
>> My machine is usin
Folks,
I used my linux box running perl 5.8 to develop a small script that
scans a list of directories and searches for files that dont have the group
set to "productn" or "dialup". It works great on my linux box, but now
I need to run it on our sun systems which are running perl version 5.005
Vema wrote:
>
> "AHDXAPI Server is now started running Thu Sep 11 23:51:00 2003"
>
> The above message is getting registerd in the log file
> my script i had schedule it for every minute thru crontab
> after a minute the following is getting update in my log file
>
> AHD XAPI SERver Running with P
Hi
I'm using RedHat 8.0 and Perl 5.8.0
I'm trying to install Time:HiRes from CPAN which is needed to use the
File::Tail module. When running "Make" i get the error:
Makefile:91: *** missing separator. Stop.
Makefile.PL says:
NOTE: if you get an error like this (the line number may vary):
Makef
On Thursday, September 11, 2003, at 09:46 AM, R. Joseph Newton wrote:
Dan Muey wrote:
SO my question is:
Which is faster/better/more portable/compliant etc
[^[:ascii:] or [[:^ascii:]] ??
How about [^:ascii:]?
The part of the message you snipped in your quoting answers this. Here
it is ag
On Thu, 11 Sep 2003 10:46:29 -0400, "Harter, Douglas" <[EMAIL PROTECTED]> wrote:
> I am writing a Perl script which will run on multiple machines. I have a
> use Expect;
> in the script.
>
> The problem is that Perl Expect is not currently insta
- Original Message -
From: "Harter, Douglas" <[EMAIL PROTECTED]>
To: "Beginners Mailing List Perl (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 4:46 AM
Subject: Conditional compilation
> I am writing a Perl script which will run on multiple machines. I have a
> use Exp
On Thu, 11 Sep 2003 08:39:06 -0500, "Dan Muey" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> Howdy
>
> >
> > First, sorry for the wrap on the lines below. I am trying to
> > insert some
> > values into a mySQL database, all of the scalars below have
Dan Muey wrote:
> SO my question is:
>
> Which is faster/better/more portable/compliant etc
>
> [^[:ascii:] or [[:^ascii:]] ??
How about [^:ascii:]?
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am writing a Perl script which will run on multiple machines. I have a
use Expect;
in the script.
The problem is that Perl Expect is not currently installed on all the
machines.
Does Perl have any conditional compilation so that I can somehow NOT execute
the use statement on the machines tha
On Thu, 11 Sep 2003 08:55:52 -0500, "JOHN FISHER" <[EMAIL PROTECTED]> wrote:
> I am extremely new to trying to navigate CPAN. I do it from a command line. While
> the screen can dump out so much information the help screen is very limited. Is
> t
Hi Rob
>
>
> "AHDXAPI Server is now started running Thu Sep 11 23:51:00 2003"
>
> The above message is getting registerd in the log file
> my script i had schedule it for every minute thru crontab
> after a minute the following is getting update in my log file
>
> AHD XAPI SERver Ru
> Hi
>
> "AHDXAPI Server is now started running Thu Sep 11 23:51:00 2003"
>
> The above message is getting registerd in the log file
> my script i had schedule it for every minute thru crontab
> after a minute the following is getting update in my log file
>
> AHD XAPI SERver Running with Proce
I am extremely new to trying to navigate CPAN. I do it from a command line. While the
screen can dump out so much information the help screen is very limited. Is there a
document or the like that can give me more information on using CPAN.
When I tried doing a command like
i /Text::/
the scre
Hi
"AHDXAPI Server is now started running Thu Sep 11 23:51:00 2003"
The above message is getting registerd in the log file
my script i had schedule it for every minute thru crontab
after a minute the following is getting update in my log file
AHD XAPI SERver Running with Process ID '18383' On
On Thursday, September 11, 2003, at 01:03 AM, R. Joseph Newton wrote:
James Edward Gray II wrote:
...
Address:2933HummingbirdSt.City:GrotonSta
te
:CT
Address:4321SparrowAve.City:GrotonState:<
ta
b>CT
. . .
What I want to do is get all of the data between Address: and City:
and
strip the
> my %hash=();
> my $mykey="key";
> my $myval1=$myval2="test";
>
> #store data in a hash of arrays
> $hash{$mykey}=[$myval1, $myval2];
>
> Later on I want to retrieve the data and I have to do it like:
>
> $myval1=$hash{$mykey}[0];
> $myval2=$hash{$mykey}[1];
>
> There are a lot of array values
> Hi,
Howdy
>
> First, sorry for the wrap on the lines below. I am trying to
> insert some
> values into a mySQL database, all of the scalars below have a value
> (none are undefined). I keep getting errors similar to the
> one below and
> despite being instructed to read the mySQL manual,
Vema wrote:
>
> i want to write to a log file "AHDXAPI Server is now started running $now_string";
> to the following path
> /proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init.log
>
>
> #!/proj/ahd02/CAisd/ActivePerl-5.6.0.618/bin/perl
> #/usr/local/bin/perl
use strict;
use warnings;
>
Anadi Taylor wrote at Thu, 11 Sep 2003 13:05:30 +:
> I want to run a perl script that does a check and depending on the results
> of that check i want to run different HTML pages.
> For example: if the check is positive i want to run index1.htm else I want
> to run index2.htm
>
> can this b
> Hi all,
Howdy
> I am writting a hit counter and would like to get the IP address of a
> visitor to my site, can anyone point me in the right
> direction please. :D
>
$ENV{'REMOTE_HOST'}
perldoc perlvar
Look for the %ENV section
HTH
DMuey
> Thanks in advance
>
> Anadi
>
>
> Hi
> i want to wirte to a log file "AHDXAPI Server is now started running $now_string";to
> the following path
> /proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init.log
>
>
> #!/proj/ahd02/CAisd/ActivePerl-5.6.0.618/bin/perl
> #/usr/local/bin/perl
>
> use POSIX qw(strftime);
> $n
It won't keep a window open in run. It will run the program print the
results and close the window. Usually faster then you can see.
Start run cmd.
The go to the directory and run the script.
What kind of "log" file are you looking for? Its not going to just log
itself. You can have your scripts cr
On Thursday, September 11, 2003, at 06:58 AM, Phillip E. Thomas wrote:
my %hash=();
my $mykey="key";
my $myval1=$myval2="test";
#store data in a hash of arrays
$hash{$mykey}=[$myval1, $myval2];
Later on I want to retrieve the data and I have to do it like:
$myval1=$hash{$mykey}[0];
$myval2=$hash
Hi Rob
i want to wirte to a log file "AHDXAPI Server is now started running $now_string";to
the following path
/proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init.log
#!/proj/ahd02/CAisd/ActivePerl-5.6.0.618/bin/perl
#/usr/local/bin/perl
use POSIX qw(strftime);
$now_string = strftime "
Greetings,
I have just installed ActivePerl 5.8.0.806 on a Win2000 machine. My
path variable contains C:\Perl\bin\. I have the following code in a
program
print.pl:
$DNA="AGT";
print $DNA;
exit;
Where might I see the results? For instance, I expected a window to
pop up (since I submitte
yes you can do something like this (very quick
example - not tested):
my $ping = `ping -c4 | tail -n1`; chomp($ping);
if ($ping =~ s/unreachable/)
{
print <
error
cannot reach machine
EOF
;
}
else
{
print <
ok
e
Anadi Taylor wrote:
>
> I want to run a perl script that does a check and depending
> on the results of that check i want to run different HTML
> pages. For example: if the check is positive i want to run
> index1.htm else I want to run index2.htm
>
> can this be done ??
Hi Anadi.
Almost certainl
Yes. Without more info that's about all you get =)
Paul
-Original Message-
From: Anadi Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: Is there a way in PERL ..
Hi Again,
I want to run a perl script that does a check and de
Hi Again,
I want to run a perl script that does a check and depending on the results
of that check i want to run different HTML pages.
For example: if the check is positive i want to run index1.htm else I want
to run index2.htm
can this be done ??
Thanks again
Anadi
You are just a dewdrop,
Hi all,
I am writting a hit counter and would like to get the IP address of a
visitor to my site, can anyone point me in the right direction please. :D
Thanks in advance
Anadi
_
Express yourself with cool emoticons - download MSN M
my %hash=();
my $mykey="key";
my $myval1=$myval2="test";
#store data in a hash of arrays
$hash{$mykey}=[$myval1, $myval2];
Later on I want to retrieve the data and I have to do it like:
$myval1=$hash{$mykey}[0];
$myval2=$hash{$mykey}[1];
There are a lot of array values and I am looking for a mo
Ok I did some searching and I didn't find your exact problem but I found
the same error in this thread
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&threadm=94ms
0i%24hqg%241%40uns-a.ucl.ac.uk&rnum=5&prev=/groups%3Fq%3DNOK%2B7%2BCan%2
7t%2Bcall%2Bmethod%2B%2522is_redirect%2522%26hl%3
On Wednesday, September 10, 2003, at 10:04 PM, sum wrote:
Dear all
I found that stat command problems, when the file is over 2GB , it
cannot return any result when i use stat command. The following are
the information:
My machine is using redhat 7.3 and the perl version is
perl-5.6.1-34.99.
Hi all,
I am writting a hit counter and would like to get the IP address of a
visitor to my site, can anyone point me in the right direction please. :D
Thanks in advance
Anadi
_
Sign-up for a FREE BT Broadband connection today!
ht
Hello Paul
I have tried it both ways..by hand and also vi perl -MCPAN and I have the
same issue.
Yes this is a perl module.
Might you know how to troubleshoot the NET::FTP perl module?
Seems that my hostname has one one IP address...but two different hostnames
in DNS..
Dan
-Original Message---
I am not an expert but it looks like your missing some prerequisites. Is
this a module? Are you getting it via perl -MCPAN or are you building it
yourself.
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 8:09 AM
To: [EMAIL PROT
Hello All
I can;t seem to manage to succesfully install
libwww-perl-5.69 on a Solaris 9 box
The make runs just fine...but the make test fails at the which is clipped way
below...
Might anyone have any clues as how to fix this?
What might this have to do with NIS or anytype of network setting stuf
That's my command now, i haven't tried yet. I put the \n because it is written
in the DDE options. I also use it under the win2k system. Without the /n i
cannot open the doc.
system("command.com /c start"," ",$filename_winword,"/n ","docs/$result->
{DOCUMENT_NAME}");
Quoting Rob Dixon <[EMAIL
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> i have the following function call
>
> $filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE";
>
> $result->{DOCUMENT_NAME}= the filename from the database.
>
> system ("start"," ",$filename_winword,"/n ", "docs/$res
This problem reported to me after trying to execute my program. And it fail to
open the doc file. The problem is that this man is far away from. I cannot see
its system.
Quoting Tim Johnson <[EMAIL PROTECTED]>:
> If you don't have Win98, then I assume you know someone who does, because
> other
If you don't have Win98, then I assume you know someone who does, because
otherwise how do you know there is a problem?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:09 AM
To: Tim Johnson
Cc: Beau E. Cox; Perl Beginners
Subject:
I don't own a win98 system. How to be sure if the command works under such a
system. Any reference of what can replace the start command because it stuck
unless i use it in my syntax.
Quoting Tim Johnson <[EMAIL PROTECTED]>:
>
> I think what he is saying is that the system() syntax is not chan
Yes; that's what I was trying to say!
- Original Message -
From: "Tim Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Beau E. Cox" <[EMAIL PROTECTED]>
Cc: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 11:57 PM
Subject: RE: system() problem in win98
>
>
I think what he is saying is that the system() syntax is not changed in Perl
between Win98 and Win2k except where there are changes in the shell of each
operating system. Try typing the command in manually and make sure it
really works before you start looking for a bug in Perl. There are subtle
Do you say that the start doesn't work under win98? However, the DDE for
the .DOC is the same with the win2k.
Quoting "Beau E. Cox" <[EMAIL PROTECTED]>:
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Perl Beginners" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 10, 2003
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 11:23 PM
Subject: system() problem in win98
>
> i have the following function call
>
> $filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE";
>
>
- Original Message -
From: "Gavin Laking" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 8:41 AM
Subject: mysql and dbi
> Hi,
>
> First, sorry for the wrap on the lines below. I am trying to insert some
> values into a mySQL database, all of the scalars b
Gavin Laking wrote:
>
> First, sorry for the wrap on the lines below. I am trying to insert some
> values into a mySQL database, all of the scalars below have a value
> (none are undefined). I keep getting errors similar to the one below and
> despite being instructed to read the mySQL manual, I c
i have the following function call
$filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE";
$result->{DOCUMENT_NAME}= the filename from the database.
system ("start"," ",$filename_winword,"/n ", "docs/$result->{DOCUMENT_NAME}");
Although it works great under Win2000 system, wh
Dear all
I found that stat command problems, when the file is over 2GB , it
cannot return any result when i use stat command. The following are the
information:
-rw-r--r--1 root root 75k Aug 10 08:27 ksyms.6
-rw-r--r--1 root root 18M Sep 11 02:13 lastlog
-rw-r-
Hi,
First, sorry for the wrap on the lines below. I am trying to insert some
values into a mySQL database, all of the scalars below have a value
(none are undefined). I keep getting errors similar to the one below and
despite being instructed to read the mySQL manual, I cannot find
anything th
In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote
> On Sep 10, Stephen said:
>
> >> find( {
> >> wanted => \&wanted,
> >> preprocess = \&preprocess,
> >> postprocess = \&postprocess,
> >> }, 'C:/SomeFolder');
> >
> >Starting to make sense. Just a small question, though. The use of
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
wrote
> Stephen wrote:
> >
> > Rob Dixon wrote:
> > >
> > >
>
> The code below does the same as the previous program, but uses
> 'preprocess' to sort the files in alpha order before thowing the
> list at 'wanted'. You could also remove files from the lis
Thank you Raghavan, its work :)
Sudarshan Raghavan <[EMAIL PROTECTED]>
09/11/2003 03:44 PM
To
[EMAIL PROTECTED]
cc
Subject
Re: Perl Module to print $string in exact possition
Hari Fajri wrote:
>Hi All,
>
>What is perl module to print $string in exact position in sceen.
>For example:
Hari Fajri wrote:
Hi All,
What is perl module to print $string in exact position in sceen.
For example:
i wanna print "time remaining: 59 second(s)"
after that, i want to replace it with: "time remaining: 58 second(s)"
Use '\r' (carraige return) instead of '\n' in your print statements and
tu
Hi All,
What is perl module to print $string in exact position in sceen.
For example:
i wanna print "time remaining: 59 second(s)"
after that, i want to replace it with: "time remaining: 58 second(s)"
Thank you
74 matches
Mail list logo