Loading ...
Sorry, an error occurred while loading the content.

COLUMN's

Expand Messages
  • Katus Waldemar
    Hi all! Below is w (who) command return. How in Perl I can write a program, which calculate in fourth column time (for ex.) 2h ? And tell me: User
    Message 1 of 1 , Nov 29, 2002
    • 0 Attachment
      Hi all!
      Below is "w" (who) command return.
      How in Perl I can write a program, which calculate in fourth column time
      (for ex.) > 2h ? And tell me:
      "User ukorb341 have 4 sesions idle > 2 h"

      $ w
      08:47AM up 16 days, 5:38, 52 users, load average: 0.09, 0.17, 0.19
      User tty login@ idle JCPU PCPU what
      akomb34 pts/0 07:55AM 0 0 0 AMGR
      ukorb341 pts/1 05:56AM 6 0 0 less
      ukorb341 pts/2 05:59AM 6 39 0 less
      ukorb341 pts/4 06:26AM 17 52 8 tail
      ukorb341 pts/5 05:56AM 31 57 15 tail
      ukorb341 pts/6 05:57AM 1:02 0 0 AMGR
      awoja341 pts/7 07:35AM 0 0 0
      AMGR
      ukorb341 pts/8 05:59AM 0 41 41 sh
      kkasb341 pts/9 08:45AM 0 0 0
      AMGR
      ukorb341 pts/10 06:00AM 0 54 54 awk
      bjagb341 pts/11 06:01AM 0 1 1
      AMGR
      .
      .
      .



      Waldek
    Your message has been successfully submitted and would be delivered to recipients shortly.