Periodical checking


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Periodical checking
# 1  
Old 07-19-2006
Periodical checking

I want to check periodically, every "period" seconds given by the user ,if a user logged in or logged out of the system.If he did print a message with his name and his time of logging in or out.for tcsh
Thank you for your time.

Last edited by aekaramg20; 07-19-2006 at 02:37 PM.. Reason: Shell
# 2  
Old 07-19-2006
ur requirement is very unclear.
do you want to log the login and logout for every user ? you can do that by printing the date in the /etc/profile file.
# 3  
Old 07-19-2006
set watch = (1 any any)

will report any login or logout every one minute on interactive shells, or the builtin 'log' if you don't want to wait.

If you want to log the activity the system login and logout files files are where to put your commnds, see 'man tcsh'
# 4  
Old 07-20-2006
To make it clearer,i want the programe to be something like this.
Please give period in seconds.
100
i want every 100seconds to check if a user logged in or logged out.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

Stop boot system at "Checking protected password and checking subsystem databases"

Hi, (i'm sorry for my english) I'm a problem on boot sco unix 5.0.5 open server. this stop at "Checking protected password and checking subsystem databases" (See this image ) I'm try this: 1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094 2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies

2. UNIX for Dummies Questions & Answers

Periodical Deletion of files and folders

Hi All, how can Periodical Delete files and folders using shell script. I.e after 1 min i want to delete files and folderns from my home directory. Thanks, Arun (9 Replies)
Discussion started by: arun508.gatike
9 Replies

3. Shell Programming and Scripting

File checking

Hi, I have to check file is available in particular directory. if ( -d $dir ){ print "It will say that is dir "; else print "It will say that is not dir"; } Not like this. I want to check that dir having files or not ? Please advice Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

4. Shell Programming and Scripting

Error checking help.

I am currently wrapping up a assignment for one of my classes. I need help writing some error checking logic. The problems I am having are: keeping track of the records I have deleted and reported it back using echo. I have no idea how to do this. ensuring that line numbers fall... (1 Reply)
Discussion started by: Boltftw
1 Replies

5. Shell Programming and Scripting

checking entries one by one

I have a file which has following content: DATA_OUTPUT_DIRECTORY=/opt/data MAX_NUMBER_OF_FILES=400 MAX_SIZE_OF_DIRECTORY=2000 ROLLOVER_INTERVAL=0 OUTPUT_DIR_COUNT=MULTIPLE i want a script which will check one by one entries (3 Replies)
Discussion started by: Aditya.Gurgaon
3 Replies

6. Shell Programming and Scripting

file checking

Hi I need to check the file,if file exist ,do some other opearations and make it successful. If file does not exist skip all steaps,go to last step and make it succesful.below is scripts is working for file exist but its not working for file not exist ... (0 Replies)
Discussion started by: mohan705
0 Replies

7. UNIX for Dummies Questions & Answers

checking for non-zero value

I have a process that spits out a file called sqlplus.out, here is what the result looks like: Currently the value you see is zero, what I need to do is perform an action if that value is non-zero, so how do I check that value in an if statement? If it helps at this moment in development the... (6 Replies)
Discussion started by: philplasma
6 Replies

8. Shell Programming and Scripting

Parameter Checking

Hi all, My script has 2 mandatory and 1 optional paramter. If the third parameter(optional) one is null the it should take a default value say 3. Can any one please write a simple code. sh test.sh 1 2 3 var1=$1 var2=$2 if then var3=3 fi echo " the third variable $var3" ... (1 Reply)
Discussion started by: ammu
1 Replies

9. UNIX for Dummies Questions & Answers

Checking cp progress

Hi gurus. I wonder if there is some command that will help me to determing the progress of cp. I'm copying huge amount of files, and through the ps x -uoracle see, that it goes 1771 pts/6 S+ 0:37 cp 1_2600_617913793.arc 37 minutes. Is there command, that helps determing on what... (0 Replies)
Discussion started by: MarGur
0 Replies
Login or Register to Ask a Question