Date: Fri, 8 Mar 2002 20:52:03 -0500 (EST) From: Peter Leftwich <Hostmaster@Video2Video.Com> To: Edwin Groothuis <edwin@mavetju.org> Cc: FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org> Subject: Re: man at [2] Message-ID: <20020308204853.A67650-100000@earl-grey.cloud9.net> In-Reply-To: <20020308132748.A26790@k7.mavetju.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020308204853.A67650-100000>