From: race9047@my-deja.com
Subject: NEWBIE: Refine the time clock
Date: 2000/04/15 [thread overview]
Message-ID: <8dad85$n32$1@nnrp1.deja.com> (raw)
I need help getting this to work.
#!/bin/sh
last |grep dan |grep 'date'
The question is to "write a script that will print out the number of
hours and minutes that a user has been logged on to the system. The
scripts first argument should be the user's login".
I am to assume that this is less than twenty-four hours and does not
cross a day boundary.
I tried putting it through vi-editor as it appears and trying to use a
do/done command sequence also. For all I know the above is the correct
script, but I may not be typing it in the write place, and typing it in
correctly. So I need help on that too.
Thanks,
Race
Sent via Deja.com http://www.deja.com/
Before you buy.
reply other threads:[~2000-04-15 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox