From owner-freebsd-questions Fri Mar 8 17:52: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id 65F7B37B400 for ; Fri, 8 Mar 2002 17:52:03 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 0D5C828B35; Fri, 8 Mar 2002 20:52:03 -0500 (EST) Date: Fri, 8 Mar 2002 20:52:03 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Edwin Groothuis Cc: FreeBSD Questions Subject: Re: man at [2] In-Reply-To: <20020308132748.A26790@k7.mavetju.org> Message-ID: <20020308204853.A67650-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 8 Mar 2002, Edwin Groothuis wrote: > On Thu, Mar 07, 2002 at 06:16:01PM -0800, Peter Leftwich wrote: > > Sorry for a tremendously simple question, but I'm pretty sure the manpages > > don't cover this: Is it possible to use "at" or "cron[tab]" for a "a time X > > minutes from now" rather than "HH:MM specific time?" For example, can you > > put in your ~/.login file something like "at +15mins echo 'time to go'"...? > Euh... man at tells this already: > You can also give times like [now] + count time-units, where the time-units can be minutes, hours, days, weeks, months or years and you can tell at to run the job today by suf- fixing the time with today and to run the job tomorrow by suffixing the time with tomorrow. > so... at -f /home/edwin/bin/blaat now + 1 minute For some reason I keep getting told "garbled time" or "incomplete time" like when I tried: $ at now + 5 seconds echo "you eeeeeediyutt" > Keep in mind that at is only checked each 5 minutes (see /etc/crontab) > Edwin > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org > edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: > ------------------+ http://www.FatalDimensions.org/ Awesome! I wouldn't have thought to check /etc/crontab, and have changed the default from */5 to */1 to run minutely :) -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message