[HPADM] Re: shell question.

From: Jeff Kell (jeff-kell_at_utc.edu)
Date: 09/22/04

  • Next message: CTASC: "[HPADM] Leading 0's in IP Address"
    Date: Tue, 21 Sep 2004 23:01:42 -0400
    To: Roy Kidder <RoyKidder@yahoo.com>
    
    

    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)
    

  • Next message: CTASC: "[HPADM] Leading 0's in IP Address"

    Relevant Pages

    • [HPADM] Re: shell question.
      ... I would suggest using the "cron" as said by Jeff, ... 'sleep' not necessarily ... Do you Yahoo!? ...
      (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)