nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

shell script for finding users not logged on for last 10 day

This is a discussion on shell script for finding users not logged on for last 10 day within the Shell scripting forums, part of the Development/Scripting category; i am working in a co. as an adminstrator, I want to a script which will give me status of ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-04-2005, 04:55 PM
ganes
Guest
 
Posts: n/a
Default shell script for finding users not logged on for last 10 day

i am working in a co. as an adminstrator, I want to a script which will give me status of users, not logged for last 10 days , users logged on for last 10 days and those who havn't logged on ever.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-05-2005, 12:59 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I have uploaded the script, see url http://cyberciti.biz/tmp/logged.bash.txt

Test it and let me know
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-05-2005, 12:55 PM
ganes
Guest
 
Posts: n/a
Default

sorry, it didnt work...says 'lastlog', 'last', not found...i am on sun OS 5.9
Reply With Quote
  #4 (permalink)  
Old 07-05-2005, 06:31 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Ahh ... you don't told me that you are using Sun OS so i assumed it is linux ... anyways you can install the command last, lastlog, bash shell for sun os and then try the script... I don't have SUN OS here; the logic remains the same for Sun OS
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 07-06-2005, 12:01 PM
ganes
Guest
 
Posts: n/a
Default

gr8 ...thanks
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Alphabetical file name and list logged in user script oronno Shell scripting 5 08-22-2007 01:10 PM
Script to add users to multiple servers. deepakhg Shell scripting 0 03-17-2007 04:02 AM
script finding file and sorting dementeddude Shell scripting 14 07-25-2006 06:30 PM
How to run script when users logouts tom Shell scripting 1 09-01-2005 12:42 AM
want a script keep backup of all users history. ricc Shell scripting 3 08-26-2005 01:30 AM


All times are GMT +5.5. The time now is 02:41 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36