![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unix ID deleted - What happen to process | cmgreat | UNIX for Advanced & Expert Users | 1 | 04-03-2008 05:18 AM |
| What happen in registers Internaly using as in csl() function | brain_full | High Level Programming | 3 | 03-15-2007 09:47 AM |
| What would happen if. . . | crispy | UNIX for Dummies Questions & Answers | 3 | 05-12-2005 01:43 PM |
| Any one can tell me how this happen? | jiangyanna | High Level Programming | 10 | 06-13-2003 05:24 AM |
| what happen when changing Hostname? | atiato | UNIX for Dummies Questions & Answers | 2 | 02-14-2002 08:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
The at command is used to schedule something in the future 1 time, while cron is used to schedule something for repeated running at certain intervals. Check the manpages for those to see the syntax/usage.
However, as Corona688 mentioned your problem is to determine the idle time. You'd probably have to write a script that uses w or who or some such command to check the idle time for your userid then log you off if it exceeds a threshhold. Once you've got that script use cron to run it every 5 minutes or whatever you'd like. Doing your example isn't as simple as just running 1 command. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|