Sponsored Content
Full Discussion: cron question
Top Forums Shell Programming and Scripting cron question Post 302146117 by Perderabo on Sunday 18th of November 2007 10:28:13 PM
Old 11-18-2007
That will run on the first seven days of each month and on every Saturday. This is discussed in the FAQ article on cron and that article has a link to a thread with one solution. This is why we wish folks would read the FAQ's.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question about Cron jobs?

I can see where the nohup command can come in very handy. My question is, do you have to do something like this (nohup) in order to run certain cron jobs? On the windows side, I have a couple of scripts that basically run continuously, so all I have to do is ctrl-alt-del to lock my workstation,... (2 Replies)
Discussion started by: wmosley2
2 Replies

2. Shell Programming and Scripting

Cron Script Question

A co-worker is having trouble w/ a job scheduled from cron and I got involved. Unfortunately I couldn't seem to find the answer and need some help. First off, I'm pretty sure he's using redhat linux. Anyway, I want to schedule a cronjob to run a java class. Let's say that, logged in as root, I... (3 Replies)
Discussion started by: doublek321
3 Replies

3. Shell Programming and Scripting

cron question

I'm new to cron, What does this syntax mean? 0 5 * * 1-5 /u08/0ra33/run_arch.sh thanks (2 Replies)
Discussion started by: ted
2 Replies

4. AIX

CRON Question

Could someone please tell me how I might specify in cron that I want a job to run only on the "last saturday" of the month? Thanks. (2 Replies)
Discussion started by: DenD
2 Replies

5. UNIX for Dummies Questions & Answers

question about cron

I have a script which goes out and installs a package on a box remotely and im trying to get it to add a cron job too..but im having a few problems, whilst it does add the entry it wont run unless I connect to the machine , crontab -e, then :wq. This re-reads the configuration file and it will now... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

6. Solaris

Solaris 10 cron question

I have a script that needs to install a script the runs just before cron starts. Currently (for 9 and older), it simply finds the name of the cron script in /etc/rc?.d, decrements the number and creates a link. For example, if cron starts with /etc/rc2.d/S75cron, the install script extracts the... (3 Replies)
Discussion started by: BOFH
3 Replies

7. Shell Programming and Scripting

cron question

Folks; I have this script in SUN which if i run it using command line, it works fine, but when i run it using cron, it work but it misses one thing. here's the details #!/bin/bash cd /opt/new_script for i in ./report*Groups.sh; do $i $1; done This script above when runs through cron, it... (4 Replies)
Discussion started by: moe2266
4 Replies

8. Linux

Question about cron jobs

with the cron format * * * * * | | | | | | | | | | | | | | | +---- Day of the Week (range: 1-7, 1 standing for Monday) | | | +------ Month of the Year (range: 1-12) | | +-------- Day of the Month (range: 1-31) | +---------- Hour (range: 0-23) +------------ Minute ... (1 Reply)
Discussion started by: buyog
1 Replies

9. Shell Programming and Scripting

Question regarding the cron

Hi, We have developed the script which will send an (html)attachment in through mail. The stand alone script is working fine ,but when we schedule it cron the "nail" command is not working that is we are not receving any mail. Following is the command which we used to send the mail. :confused:... (4 Replies)
Discussion started by: Amey Joshi
4 Replies

10. UNIX for Dummies Questions & Answers

Cron job question

Hi, I have a cron job that I want to run twice a week, on Tues/Thurs, and I want it to run three times - specifically at 10pm, 11:10pm, and 12:20am respectively. I "think" the way to do this is to run the following: 00,10,20 22,23,00 * * 2,4 MYCOMMAND Just wanted to verify this... (4 Replies)
Discussion started by: xdawg
4 Replies
EXPIRE.CTL(5)							File Formats Manual						     EXPIRE.CTL(5)

NAME
       expire.ctl - control file for Usenet article expiration

DESCRIPTION
       The  file  /etc/news/expire.ctl	is  the default control file for the expire(8) program, which reads it at start-up.  Blank lines and lines
       beginning with a number sign (``#'') are ignored.  All other lines should be in one of two formats.

       The first format specifies how long to keep a record of fully-expired articles.	This is useful when a newsfeed intermittently offers older
       news  that  is  not kept around very long.  (The case of very old news is handled by the ``-c'' flag of innd(8).)  There should only be one
       line in this format, which looks like this:
	      /remember/:days
       Where days is a floating-point number that specifies the upper limit to remember a Message-ID, even if the  article  has  already  expired.
       (It does not affect article expirations.)

       Most of the lines in the file will consist of five colon-separated fields, as follows:
	      pattern:modflag:keep:default:purge
       The  pattern  field  is a list of wildmat(3)-style patterns, separated by commas.  This field specifies the newsgroups to which the line is
       applied.  Note that the file is interpreted in order, so that the last line that matches will be used.  This means  that  general  patterns
       (like a single asterisk to set the defaults) should appear before specific group specifications.

       The modflag field can be used to further limit newsgroups to which the line applies, and should be chosen from the following set:
	      M    Only moderated groups
	      U    Only unmoderated groups
	      A    All groups

       The  next  three  fields are used to determine how long an article should be kept.  Each field should be either a number of days (fractions
       like ``8.5'' are allowed) or the word ``never.''  The most common use is to specify the default value for how long  an  article	should	be
       kept.   The  first  and	third fields -- keep and purge -- specify the boundaries within which an Expires header will be honored.  They are
       ignored if an article has no Expires header.  The fields are specified in the file as ``lower-bound default  upper-bound,''  and  they  are
       explained  in this order.  Since most articles do not have explicit expiration dates, however, the second field tends to be the most impor-
       tant one.

       The keep field specifies how many days an article should be kept before it will be removed.  No article in the newsgroup will be removed if
       it  has	been filed for less then keep days, regardless of any expiration date.	If this field is the word ``never'' then an article cannot
       have been kept for enough days so it will never be expired.

       The default field specifies how long to keep an article if no Expires header is present.  If this field is the word ``never'' then articles
       without explicit expiration dates will never be expired.

       The purge field specifies the upper bound on how long an article can be kept.  No article will be kept longer then the number of days spec-
       ified by this field.  All articles will be removed after then have been kept for purge days.  If purge is the word ``never'' then the arti-
       cle will never be deleted.

       It  is  often  useful  to  honor  the  expiration headers in articles, especially those in moderated groups.  To do this, set keep to zero,
       default to whatever value you wish, and purge to never.	To ignore any Expires header, set all three fields to the same value.

       There must be exactly one line with a pattern of ``*'' and a modflags of ``A'' -- this matches all groups and is used to set the expiration
       default.  It should be the first expiration line.

       For example,
	      ##  How long to keep expired history
	      /remember/:5
	      ##  Most things stay for two weeks
	      *:A:14:14:14
	      ##  Believe expiration dates in moderated groups, up to six weeks
	      *:M:1:30:42
	      ##  Keep local stuff for a long time
	      foo.*:A:30:30:30

HISTORY
       Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews.  This is revision 1.15, dated 1996/10/29.

SEE ALSO
       expire(8), wildmat(3).

																     EXPIRE.CTL(5)
All times are GMT -4. The time now is 04:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy