Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: REGEXP in perl questiion
- To: tlug@example.com
- Subject: Re: REGEXP in perl questiion
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
- Date: Wed, 23 May 2001 09:24:25 -0000
- Content-Type: text/plain; format=flowed
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <XcOvrC.A.O1.SH4C7@example.com>
- Resent-Sender: tlug-request@example.com
Thanks! Your second option worked, but the first one did not. From your first email I tried: if ( $_ =~ /^Subject: /) { if ($_ =~ "Cron") { #Extract the name of the prog that cron lauched $PROGNAME =~ s/.*\/([^\s]+)\s.*/$1/; $PROGNAME = $1; #doesn't matter if this line is here or not print "The program called by cron was $PROGNAME\n"; #If this cron job is expected remove it from the list } } But it just printed out blanks. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
- Follow-Ups:
- Re: REGEXP in perl questiion
- From: Matt Doughty <mdoughty@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Doh!
- Next by Date: Re: REGEXP in perl questiion
- Prev by thread: Re: REGEXP in perl questiion
- Next by thread: Re: REGEXP in perl questiion
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links