crontab - how do I run a job every 5 minutes from cron?

  • Permalink
  • submit to reddit
  • Email
  • Follow


Hi all,
I'm trying to figure out how to run a job every 5 mins from crontab.
On linux it seems to be possible by this line:
*/5 * * * * <command>
but AIX (4.3.3) doesn't like this.
Thanks in advance.
0
Reply nospam52 (1566) 9/6/2006 6:24:05 PM

See related articles to this posting


EvB wrote:
> Hi all,
> I'm trying to figure out how to run a job every 5 mins from crontab.
> On linux it seems to be possible by this line:
> */5 * * * * <command>
> but AIX (4.3.3) doesn't like this.
> Thanks in advance.

In the minutes field, just put "0,5,10,15,20,25,30,35,40,45,50,55".

A bit long, but it'll work.

0
Reply robert.drea (106) 9/6/2006 6:32:57 PM

Ok thanks!

On 6 Sep 2006 11:32:57 -0700, "BD" <robert.drea@gmail.com> wrote:

>
>EvB wrote:
>> Hi all,
>> I'm trying to figure out how to run a job every 5 mins from crontab.
>> On linux it seems to be possible by this line:
>> */5 * * * * <command>
>> but AIX (4.3.3) doesn't like this.
>> Thanks in advance.
>
>In the minutes field, just put "0,5,10,15,20,25,30,35,40,45,50,55".
>
>A bit long, but it'll work.

0
Reply nospam52 (1566) 9/6/2006 6:39:56 PM
comp.unix.aix 10885 articles. 5 followers. Post

2 Replies
482 Views

Similar Articles

[PageSpeed] 39


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

Run Cron Job every 2 minutes interval
Hi All I want my cron job to run at every 2 minutes interval in all hours, days, months etc. OS - Sun Solaris Release Level -5.10 I tried with */2 * * * * filename but it failed. How to do that? Regards Prachet On 2008-11-14 20:25:17 +0000, Prachet <prachetmohanty@gmail.com> said: > Hi All > > I want my cron job to run at every 2 minutes interval in all hours, > days, months etc. > OS - Sun Solaris > Release Level -5.10 > > I tried with */2 * * * * filename but it failed. > > How to do that? Try 'man crontab' on your Solaris box to find out...

i need to trigger a script every 20 seconds, but cron will only run every minute
The fastest I can get cron to run is once a minute. But I've got a script (which logs people out of a chat room) which needs to fire once every 20 seconds. How do I do this? Jake Barnes <lkrubner@geocities.com> writes: > The fastest I can get cron to run is once a minute. But I've got a > script (which logs people out of a chat room) which needs to fire once > every 20 seconds. How do I do this? Have it three times in your cron script with "sleep 20" in between? -- Thorbj´┐Żrn Ravn Andersen Thorbjoern Ravn Andersen wrote: > Jake Barnes <lkrubner@ge...

a cron job runs every day, weird...
my cron job runs every day but it runs very long time, may lasting a few days. the process name is sync_data. [root@tmp]# pstack 18773 (yesterdays' pid) 18773: /sync_data ff246118 read (6, 153bf54, 1400) ff22ab00 getc (10d368, 0, 43898, d2834, ff26e2f4, ff273684) + b0 000d4320 PerlIOStdio_read (0, ffbfd557, 1, d4304, 0, 8) + 1c 000d2834 Perl_PerlIO_read (117c68, ffbfd557, 1, 0, 807689, 5b) + 2c 000d628c PerlIO_getc (117c68, 0, 0, 10dc00, 0, 8) + c 00086e2c Perl_sv_gets (5a7ed8, 117c68, 0, 0, 807689, 5b) + 578 0007907c Perl_do_readline (869e68, 0, 5ee3a, 10dc...

CRON: Run a job every 15 seconds?
I need to run something from CRON every 10 or 15 seconds for a while. It appears that the smallest interval I can establish for a CRON entry is once every minute. Does anyone know how I can get a job to run every 10 or 15 seconds based on a CRON entry? Thanks, Clark How about writing a script instead that runs in the background all the time and uses sleep. do while 0 program sleep 10 (or 15) done Anne DC wrote: >I need to run something from CRON every 10 or 15 seconds for a while. It >appears that the smallest interval I can establish for a CRON entry is once >...

How can I run cron job at 12'o clock every night on my RH Linux machine?
How can I run cron job in Linux, I need to run some job automatically every night at 12'o clock on my RH Linux machine. Basically what I want to do in my script is, I need to check out my code, then build and then send an e-mail, the log of comp, can that be possible?. also can I keep this script in my home directory or in /etc Directory?. These four commands I need to place in that script. cvs co project1/module1 cd project1/module1 ../build > log 2>&1 cat log | mail -s "log" user1@xyz.com Thanks. santa19992000@yahoo.com scratched on the wall: > How can I ru...

Ubuntu Lurid crapware: "freezes every 5 minutes... Windows runs great with multiple heavy apps"
"Zero problems with freezes in 10.04 for a month or more since I installed it until today, I swapped the old single core CPU (AMD64 venice core socket 939) for a dual core AMD64 3800, and now it freezes every 5 minutes or so. I have noted a lot of people mentioning AMD dual-core chips in this thread and another, it's very obviously the problem in mine, I am running a dual boot like another poster mentioned, and the Windows xp runs great even when stressed with multiple heavy apps running, so I know it's got to be in the software, and in my case is related to mul...

Help? Pick up the every first record in 5 minutes intervals every day.
Dear all: Could anybody help me how to pick up the every first record in 5 minutes intervals every day. Should I use PROC SQL or PROC SORT? Thanks in advance! Hsu-Huei Weng, M.D., M.P.H. ** My data ** DATA first_obs; INPUT date1 yymmdd8. rawtime price; CARDS; 20010903 084501 4452.00 20010903 084503 217.90 20010903 084506 645.00 20010903 084509 4452.00 20010903 084511 4450.00 20010903 085002 4479.00 20010903 085006 647.00 20010903 085009 4478.00 20010903 085011 4479.00 20010903 085013 219.40 20010903 085503 219.10 2001...

Cron job is not running
One of the user's cron job is not running. When I looked at the /var/cron/log file, it shows the follwoing message: psoft: bad user What does it mean? How do I fix it? Joe Philip wrote: > One of the user's cron job is not running. When I looked at the > /var/cron/log file, it shows the follwoing message: > > psoft: bad user > > What does it mean? How do I fix it? user's password locked or expired? Invalid shell or home dir? check /etc/shadow & /etc/passwd In article <uB7ub.9160$3o6.6053@nwrdny01.gnilink.net>, Joe Philip <joe.philip@verizon...

Sampling every 5 minutes
I have a pressure sensor instrument with a 0 - 5v output relating to the 0 - 25mbar pressure, this is connected via a NI DAQPAD 6016. I want to be able to show the current pressure reading and also have a reading taken every 5 minutes so that I can plot a graph of the pressure change. The readings have to be every 5 mins, no closer together. &nbsp; Can anyone suggest anything? &nbsp; Thanks &nbsp; Paul Paul, i would think that it doesnt matter if the period between values differs about a few seconds, so i advice you to take the values as single samples softwaretimed. The storage...

kron every 5 minutes
Hello, How do I get it, which kron me every 5 minutes a "clear host *" implements? Knut sends kind regards -- Unix ... if I have to explain, you wouldn't understand! On 27.11.2004 11:41 Knut Rauscher wrote > Hello, > > How do I get it, which kron me every 5 minutes a > "clear host *" implements? > Install rancid/clogin [0] and have a 'clogin -c "clear host *" $router' fired off by your unix host via cron. Just out of curiosity: why dou you need this? Arnold [0] http://www.shrubbery.net/rancid/ -- Arnold Nipper, AN45 On Sa...

cron job occasionally does not run
This is a multi-part message in MIME format. ------=_NextPart_000_0010_01C3AD2C.65436DF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have a Solaris 8 system that runs daily cron jobs. Very infrequently a = job is not run. It will run every day as it should for months. Then one = day a job will simply not be run. I have logging enabled in /etc/default/cron. The log, /var/cron/log = contains entries for successful invocations of cron jobs but no record = of jobs that are not run. I am at a loss as to how to investigate this further....

Running lame from a cron job
I have a script that can encode a wav file to either an ogg file using oggenc or an mp3 using lame. If I execute the script as a user, it works. If I run the script using a cron job, the oggenc will run, but the lame won't. Here are the permissions: -rwxr-xr-x 1 root root 57K Jul 28 2004 /usr/bin/oggenc -rwxr-xr-x 1 root root 439K Mar 6 17:46 /usr/local/bin/lame Could someone please tell me what is wrong? I am running the cron job under root. Thanks. On 16 Mar 2005 10:49:36 -0800, deja.10.thrillho@spamgourmet.com staggered into the Black Sun and said: > I have a script tha...

running idl from a cron job
hi can someone give me a link to show how to run an idl peice of code from a unix shell script thanks russ Well, here's how I do it (there may be other ways tough). Define a shell script doing two things: - set up an IDL_STARTUP environmental variable with the full path to a valid IDL program (let's say is called idl_startup.pro) - start idl Then, in idl_startup.pro put in [your initialization for IDL] your_program exit end This way, you can put the shell script in your cron table, and this will execute your IDL initializations, then the program called your_program and exit...

unexpected crontab jobs runnings
Hi all, AIX 4.3.3 This may be weird but yesterday I've commented one of my crontab's entries to avoid a program execution at 9 pm (by including '#' at the very beginning of the line). This morning I realized that this program has lauched automatically at 9 o'clock although I did not want it to. Using '#' is the good way to comment a crontab entry ? Is there any other way than crontab I don't to run a task automatically ? Best Regards ToMa On 28 Jun 2005 23:41:16 -0700, tomapam@gmail.com <tomapam@gmail.com> wrote: > Hi all, > > AIX ...

Where can we Check for the running cron Jobs
Hello, I have one script to run at 12:30, so I edited my cron tab as # crontab -e 30 12 * * * sh xx.sh Its is not working. Where can I find the running cron jobs . Thanks, Velmurugan G Hello gvelmurugan@gmail.com, gvelmurugan@gmail.com schrieb/wrote: > I have one script to run at 12:30, so I edited my cron tab as > > # crontab -e > > 30 12 * * * sh xx.sh > > Its is not working. Where can I find the running cron jobs . The users' crontabs are located at /var/spool/cron/crontabs. Maybe your job works, when you call "sh" with its absolute path /bin/s...

running rm cobol in a cron job
I have RM Cobol 7.1 running with Flexgen on AIX 4.2.1. I have the following bat file that I have scheduled to run in the cron at a certain time of day. RUNPATH=/flextmp/fg4:/flextmp/fg4/fg4bin: export RUNPATH TERM=vt100 export TERM runcobol REP-WEB3.COB K ftp -n ftppublish.ai.org </flextmp/fg4/ftpweb2.txt rm /flextmp/fg4/repweb.txt When I run this bat file logged in as root on the system terminal, it runs without any errors or problems. After it runs from the cron job, it doesn't work and I got this error message in the root mail: Window Manager not loaded, window status: 305 then...

Will cron run on every login?
Hi, I just set up my cron job by running crontab. Now I am logged in to several machines, I set the cron job start at the midnight. Now I am wondering if all the machines I am logged in will start run cron job at the same time to do the same work? Note that I will not log off those machines. Thanks. linq936@hotmail.com wrote: > Hi, > I just set up my cron job by running crontab. Now I am logged in to > several machines, I set the cron job start at the midnight. > > Now I am wondering if all the machines I am logged in will start run > cron job at the same time to...

syntax errors when job run from cron
Well this is weird! I'm used to odd problems when you run programs from cron but these are almost invariably to do with file permissions or stuff in the environment variables not matching the command line environment. I'm using ruby 1.8.4 (2005-12-24) [i686-linux] on a RHE 3.0 system. The program runs fine from command line but gets nonsensical syntax errors when run from cron. Any idea where to look for the problem? Russell -- Posted via http://www.ruby-forum.com/. On 8/21/06, Russell Fulton <r.fulton@auckland.ac.nz> wrote: > Well this is weird! I'm used to...

crontab every two minutes easier?
I tried using 2/* for the minute column in crontab on a Solaris 10 box, but it gives me an invalid syntax error. Is there an easier way to do this other than this long line? 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /myscript Thanks! Xao wrote: > I tried using 2/* for the minute column in crontab on a Solaris 10 > box, but it gives me an invalid syntax error. > > Is there an easier way to do this other than this long line? > > 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 > * *...

Analyse LOG every 5 minutes
Hello SAS-Users, How can I analyse my log every 5 minutes because my programs last 20 hours. And I want my program to stop when there is an error. Thanks. Ash_rmy. On Sep 22, 2:58=A0pm, ash007 <ramsamyash...@gmail.com> wrote: > Hello SAS-Users, > > How can I analyse my log every 5 minutes because my programs last 20 > hours. And I want my program to stop when there is an error. > > Thanks. > > Ash_rmy. How about the ERRORABEND option. See DOCs for details. Hello SAS-USERS, Thanks for your reply data _null_; , But for my situation, i...

Refresh page every 5 minutes
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help. -- Willem Van der Mescht horsy@absamail.co.za http://myweb.absamail.co.za/horsy (If there were more horses around the world would be more stabilised) Willem wrote on 29 jun 2003 in comp.lang.javascript: > Can someone tell me how I can get a page(any page) on the Internet to > refresh automati...

How to trigger an event every 5 minutes
I am trying to figure out what the best way to have my program do something (change the value of a variable) every x number of minutes. Can somebody give me a pointer in the right direction? Jon Jon Zero <jzero@nospam.net> wrote: > I am trying to figure out what the best way to have my program do > something (change the value of a variable) every x number of minutes. Can > somebody give me a pointer in the right direction? In ISO C, the only option, and even then it's not an ideal one, is to have a busy-loop inside which you check the elapsed time using time() and diff...

ARCHIVE LOG every 5 minut
Hi, I have strange situation. My Oracle generate exactly every 5 minutes archive file. I don't know why exactly every 5 min. he create *.arc file and always this files have 100MB. What to check? What is wrong? thanks Paul DBAdmin wrote: > Hi, > > I have strange situation. My Oracle generate exactly every 5 minutes > archive file. I don't know why exactly every 5 min. he create *.arc file > and always this files have 100MB. > What to check? What is wrong? > > thanks > Paul I can't say that anything is 'wrong', however you do appear to be sw...

kjournald restarting every 5 minutes
Why does kjournald restart every 5 minutes? Is this normal behavior? I am still waiting on a crontab so I can see if this is being forcibly restarted for some reason, but I wanted to know if this is a standard/acceptable practice. Thanks for any comments. Jun 29 21:54:44 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 21:59:44 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 21:59:44 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:04:44 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:04:44 vts21...