Is there a way to reset the bash or zsh idle time?

This is a discussion on Is there a way to reset the bash or zsh idle time? within the Linux Programming forums, part of the Platform Specific Boards category; Say I have a script that runs for 2 hours. Is there some way to reset the "idle time" so ...

  1. #1
    Banned
    Join Date
    May 2007
    Location
    Berkeley, CA
    Posts
    329

    Is there a way to reset the bash or zsh idle time?

    Say I have a script that runs for 2 hours. Is there some way to reset the "idle time" so that after the first 30 minutes of execution, it gets reset back to zero again.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What "idle-time" are you talking about? "Not pressing a key on the keyboard and blanking the screen", or something else?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Banned
    Join Date
    May 2007
    Location
    Berkeley, CA
    Posts
    329
    There's more than one "idle time"? Can you, or someone else, please enlighten me on this.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Overworked_PhD View Post
    There's more than one "idle time"? Can you, or someone else, please enlighten me on this.
    Idle-time may mean many things, in my mind, yes.
    For example:
    Keyboard/mouse idle - nothing being input or mouse not moved for x amount of time.
    CPU idle-time - there is no active process running.
    Hard-disk idle-time - no disk activity.

    Guess what? Everything that can be "busy" or "in use" can (and will) have an idle time.

    So if you mean "screen saver" start after X time of "Keyboard/mouse idle time" (screen switches off or some such), then you need to change the setting for the screen saver. If it's some other idle-time, then you need to explain what you mean, and we can (probably) help you in the right direction.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 11:43 AM
  2. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-03-2002, 07:51 PM
  3. Is this really true or it's just science fiction?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 145
    Last Post: 04-09-2002, 07:17 PM
  4. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM
  5. relating date....
    By Prakash in forum C Programming
    Replies: 3
    Last Post: 09-19-2001, 10:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21