summaryrefslogtreecommitdiff
path: root/eg/myrup
diff options
context:
space:
mode:
Diffstat (limited to 'eg/myrup')
-rw-r--r--eg/myrup6
1 files changed, 3 insertions, 3 deletions
diff --git a/eg/myrup b/eg/myrup
index c32c99ccd2..f7d64dbd2f 100644
--- a/eg/myrup
+++ b/eg/myrup
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Header: myrup,v 2.0 88/06/05 00:16:51 root Exp $
+# $Header: myrup,v 3.0 89/10/18 15:15:06 lwall Locked $
# This was a customization of ruptime requested by someone here who wanted
# to be able to find the least loaded machine easily. It uses the
@@ -9,7 +9,7 @@
print "node load (u)\n------- --------\n";
-open(ghosts,'/etc/ghosts') || die "Can't open /etc/ghosts";
+open(ghosts,'/etc/ghosts') || die "Can't open /etc/ghosts: $!";
line: while (<ghosts>) {
next line if /^#/;
next line if /^$/;
@@ -18,7 +18,7 @@ line: while (<ghosts>) {
$wanted{$host} = 1;
}
-open(ruptime,'ruptime|') || die "Can't run ruptime";
+open(ruptime,'ruptime|') || die "Can't run ruptime: $!";
open(sort,'|sort +1n');
while (<ruptime>) {