My apologies -
I use:
$who = `whoami`;
not
$who = `who`;
Thanks,
--Bill
- Original Message -
From: "Simas Cepaitis" <[EMAIL PROTECTED]>
To: "Bill Pierson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 9:33 AM
Subject:
Good morning, afternoon, or evening depending on when you read this. :o)
To aid in system administration and to track whom is accessing my servers, I wrote a
little PERL script that is called from /etc/bashrc. As soon as someone logs in, the
program gets the date and executes:
$who = `who`;
I
Thanks! In just a moment you'll hear a loud "pop." That will be the sound of
my head coming out of my buttocks with great force. :)
--Bill
- Original Message -
From: "Ledbetter, Jason" <[EMAIL PROTECTED]>
To: "'Bill Pierson '" <[
Easy question.
open(IN,"something.txt");
while($line = ) {
chomp($line);
if ($line eq "something") {
## HOW DO I STOP THE WHILE AND MOVE ON?
}
}
Too little sleep + too much perl = deer in headlights.
Any help will be appreciated,
--Bill
Dave,
I tested it with the <> on both *nix and windows - both worked with no
problems. I'm guessing that it may be beneficial to see the whole
program.
--Bill
- Original Message -
From: "SAWMaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 1:32 PM
Su
Dave,
Are you running this as a batch file, or as a PERL file?
--Bill
- Original Message -
From: "SAWMaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 12:48 PM
Subject: Mysterys of the Unknown STDIN
I'm working on a fairly lengthy ( for a newbie like me
Hello again, all.
May I get some suggestions for any Windows-based PERL development tools? Preferably,
free ones?
Thanks,
--Bill
I'm a learner myself, but here is a quick guess:
open(IN,"/etc/httpd/conf/httpd.conf") || die $!;
@conf = ;
close(IN);
foreach (@conf) {
if ($_ =~ /ServerName (.*)/i) {
push (@servers,$1);
}
}
print "@servers\n";
You may also need to put in a exclusion for the main servername directi
al Message-
From: Farouk Khawaja [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 10:44 PM
To: Bill Pierson; [EMAIL PROTECTED]
Subject: Re: Running PERL as root
Bill Pierson <[EMAIL PROTECTED]> wrote:
> I have a quick question about running a perl
program as root v
I have a quick question about running a perl program as root via CGI.
I would assume it's platform dependant, and in my situation I have Linux
Redhat 7.1 w/Apache 1.3.19 webserver.
This question is a little off-topic, however I'm guessing that a few of you
may have tackled this issue before.
Tha
Greetings all - I realize this is a very broad question, however any suggestions would
be appreciated.
I'm looking to purchase good learning tools about programming in PERL. I've been
programming with it for several years, but I've never truly learned the basics - just
looked at other code and
Greetings all. I'm new to the list, and this is my first post, please excuse my
ignorance if I ask a question that has already been addressed.
I need some help finding a program or script that will merge/sort a 250+MB file as
quickly as possible.
For example - I have 2 files. File A, and File
12 matches
Mail list logo