The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need Bourne shell tutorial jag Shell Programming and Scripting 1 02-22-2008 09:52 AM
Bourne-again shell mrsamer UNIX for Dummies Questions & Answers 3 09-30-2006 03:42 AM
Bourne Shell scripting help PoloRL185 Shell Programming and Scripting 1 05-13-2005 01:09 PM
Bourne Shell Script dmhonor914 UNIX for Dummies Questions & Answers 2 12-10-2003 12:25 PM
Bourne Shell Scripting Slamo Shell Programming and Scripting 3 05-19-2003 09:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2004
peter112 peter112 is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 6
Post UNix Bourne Shell

i require a utility that identifies all users currently logged into the system. It should create a file called logfile which contains a list of usernames together with a count of how many login sessions they are currently running, for example

coc9io : 1
hbh8jd : 3
dg7hy : 1
root : 4

it should also print to a standard output message to the form

Total User: hbh8jd (3 sessions)

for each user with more than 2 current login sessions.

if possible can you you use comments so that i understand the code better

thanks very much

peter west
  #2 (permalink)  
Old 04-02-2004
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
This seems to be the same request as: this post by dave ward. Are they both for a homework assignment?
  #3 (permalink)  
Old 04-02-2004
peter112 peter112 is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 6
yip it is we all must have the same idea

any help would be appreciated though

unix is great but books and web serches are not much help

thanks pete
  #4 (permalink)  
Old 04-02-2004
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Read our rules. There is a link at the bottom of every page. This thread is closed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0