Sat, 01 Sep 2012 12:17:10 +0200
Back out attempt to repair gets(3) redefinition and correct rather by
avoiding detection of gets(3) as a method with no macro, otherwise
leading to definition of HAVE_RAW_DECL_GETS and redefition of gets(3)
in lib/stdio.h(.in) caused by 'a split double-inclusion guard' and
a seemingly multiple '#include_next <stdio.h>' reference. Quatch.
1 #! @l_prefix@/bin/perl
2 ##
3 ## uptime.pl: provide formatted uptime(1) information
4 ##
6 $null = 0;
7 $uptime = `uptime`;
8 $hostname = `hostname`;
10 $uptime =~ /up (.*?) day/;
11 $up = int($1);
13 # According to http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
14 # 'the external command must return 4 lines of output.'
15 print "$up\n";
16 print "$up\n";
17 print "$null\n";
18 print "$null\n";