FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 05-13-2012, 09:48 AM
Frank Murphy
 
Default cronjob @reboot monthly?

Can I do:
crontab -e
@reboot monthly yum clean plugins


--
Regards,
Frank
"Jack of all, fubars"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-13-2012, 09:58 AM
Ed Greshko
 
Default cronjob @reboot monthly?

On 05/13/2012 05:48 PM, Frank Murphy wrote:
> Can I do:
> crontab -e
> @reboot monthly yum clean plugins
>
>

My guess is no.... from man 5 crontab

EXTENSIONS
These special time specification "nicknames" which replace the 5 initial
time and date fields, and are prefixed with the '@' character, are sup‐
ported:
@reboot : Run once after reboot.
@yearly : Run once a year, ie. "0 0 1 1 *".
@annually : Run once a year, ie. "0 0 1 1 *".
@monthly : Run once a month, ie. "0 0 1 * *".
@weekly : Run once a week, ie. "0 0 * * 0".
@daily : Run once a day, ie. "0 0 * * *".
@hourly : Run once an hour, ie. "0 * * * *".


--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-13-2012, 10:02 AM
Frank Murphy
 
Default cronjob @reboot monthly?

On 13/05/12 10:58, Ed Greshko wrote:

On 05/13/2012 05:48 PM, Frank Murphy wrote:

Can I do:
crontab -e
@reboot monthly yum clean plugins




My guess is no.... from man 5 crontab

EXTENSIONS
These special time specification "nicknames" which replace the 5 initial
time and date fields, and are prefixed with the '@' character, are sup‐
ported:
@reboot : Run once after reboot.
@yearly : Run once a year, ie. "0 0 1 1 *".
@annually : Run once a year, ie. "0 0 1 1 *".
@monthly : Run once a month, ie. "0 0 1 * *".
@weekly : Run once a week, ie. "0 0 * * 0".
@daily : Run once a day, ie. "0 0 * * *".
@hourly : Run once an hour, ie. "0 * * * *".




Was hoping I could cheat, ah well, back to the garden.

--
Regards,
Frank
"Jack of all, fubars"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-13-2012, 10:37 PM
Cameron Simpson
 
Default cronjob @reboot monthly?

On 13May2012 10:48, Frank Murphy <frankly3d@gmail.com> wrote:
| Can I do:
| crontab -e
| @reboot monthly yum clean plugins

I'm sure you could put such a line in. Doubtless it would run the
"monthly" command (no such animal I expect, and woe to you if there
were!) after a reboot.

What, precisely, do you want it to mean?

Reboot once a month?
Once a month, but only after a reboot?
After a reboot, but only if it has been at least a month since the last
one?

They can probably all be done (not exactly as typed). You'd need to test
some state yourself.
--
Cameron Simpson <cs@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Us: We'd like to buy the SL, your very cheapest model.
Salesman: You can't get an automatic on it.
Us: We don't want it.
S: You can't...
U: Don't want it.
S: Or...
U: That either.
S: Ok, sign here.
- David Wren-Hardin <bdh4@midway.uchicago.edu>
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 04:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org