Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Newbie needs help with 1st scripts
Name: Acoustic Date: November 29, 2006 at 05:11:53 Pacific OS: Solaris 5.8 CPU/Ram: ? Product: ?
Comment:
Hi I'm quite new with scripting and am having a few problems with even the simpleist things. I am trying to create a script that will tell me all users on my system that haven't logged in for 6 months. This is what i've got at the moment as a start but this isn't working and it is the easy bit. The list of user names and directory are listed below the script.
while read uname hdir do if echo $hdir | grep '^/home/' > /dev/null then last -n 1 $uname > lastlogin sleep 5 fi done
Summary: Hello, Can some one tell me what was wrong with my script? I have file called list cat list s001 v s010 h s999 s ================== here is my script: for i in `cat list` do store=`echo $i |awk '{prin...
Summary: I need a KornShell script that will, among all the users currently logged on to the system, find a slot of one hour that contains the most number of users. I know how to list all the users currently l...
Summary: Hello all, I'm having a problem with one part of my KSH script. Below is the script and OutPut. What I would like to do next is combine field 1 "example = Accoskypager" with the other Accoskypager bu...