[HPADM] Re: shell question.

From: ram v (ramk21_at_yahoo.com)
Date: 09/22/04

  • Next message: brian irvin: "[HPADM] Summary-Shell Question and sleep question."
    Date: Wed, 22 Sep 2004 08:20:15 -0700 (PDT)
    To: Jeff Kell <jeff-kell@utc.edu>, Roy Kidder <RoyKidder@yahoo.com>
    
    

    I would suggest using the "cron" as said by Jeff, as
    it is the efficient way of doing..

    ** To answer your questions, 'sleep' not necessarily
    "sleeps" for the specified seconds, it may be longer
    or shorter depending on your system load. Was "sleep"
    still running on the system when you checked after a
    day?

    Regards
    Ram

    --- Jeff Kell <jeff-kell@utc.edu> wrote:

    > Roy Kidder wrote:
    >
    > >I personally would approach it this way:
    > >
    > >-----
    > >#!/bin/sh
    > >
    > >while [ "TRUE" ]
    > >do
    > > echo "Something"
    > > sleep 86400
    > >done
    > >
    > >
    > If you want it done daily, what's wrong with cron?
    >
    > Jeff
    >
    > --
    > ---> Please post QUESTIONS and
    > SUMMARIES only!! <---
    > To subscribe/unsubscribe to this list,
    > contact majordomo@dutchworks.nl
    > Name: hpux-admin@dutchworks.nl Owner:
    > owner-hpux-admin@dutchworks.nl
    >
    > Archives:
    > ftp.dutchworks.nl:/pub/digests/hpux-admin
    > (FTP, browse only)
    >
    > http://www.dutchworks.nl/htbin/hpsysadmin (Web,
    > browse & search)
    >
    >

                    
    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - 50x more storage than other providers!
    http://promotions.yahoo.com/new_mail

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: brian irvin: "[HPADM] Summary-Shell Question and sleep question."

    Relevant Pages

    • [HPADM] Re: shell question.
      ... > sleep 86400 ... If you want it done daily, what's wrong with cron? ... Jeff ... To subscribe/unsubscribe to this list, ...
      (HP-UX-Admin)
    • Re: Microfocus Cobol "SLEEP" routine
      ... The program using this is a background program and can be ... run via cron too. ... Is there a way in MF Cobol to pause program execution (sleep) for, ... Vaclav Snajdr ...
      (comp.lang.cobol)
    • Re: 9999to/ot
      ... unforgiven say that to the best fish fry guy around...he can catch them but ... don't invite Jeff because 7 pounds of trout is his appetizer...damm it ... please don't tell Jeff about the fry we are planning...maybe he will stay at ... but he goes to sleep listening to his 'puter talk to him? ...
      (rec.sport.paintball)
    • Re: Timer Task?
      ... "sleep" for scheduling? ... I use cron for most of these periodic, ... in most cases "sleep" is a perfectly acceptable way to do it. ... guarantee is that it will be *at least* 10 seconds. ...
      (comp.lang.ruby)
    • Re: Leaving a Computer Running ?
      ... > when to perform the nightly maintenance. ... I turn my computer off over night so I can sleep. ... This would mean missing the ... cron stuff but since most of it is done by periodic, I have a script that is ...
      (freebsd-questions)