Re: Fwd: 'system uptime' service - contribution

Hugo van der Kooij <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
> if (($ENV{'PRINTING'} eq "y" ) && (-f "/usr/bin/uptime")) {
>     #print "\n\n------------------ System Uptime
> --------------------\n\n";
>      system("$env /usr/bin/uptime");
>      print "\n";
> }
> elsif (($ENV{'PRINTING'} eq "y" ) && (-f "/usr/bin/uptime")) {
>     #print "\n\n------------------ System Uptime
> --------------------\n\n";
>      system("$env /usr/bin/uptime");
>      print "\n";
> }

I can't fathom what the second part is for. It is a duplicate of the first 
conditional statement.

Hugo.

-- 
 	[email protected]	http://hvdkooij.xs4all.nl/
 	    This message is using 100% recycled electrons.

 	Some men see computers as they are and say "Windows"
 	I use computers with Linux and say "Why Windows?"
 		(Thanks JFK, for the insight.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.