f



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

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
nospam52 (1566)
9/6/2006 6:24:05 PM
comp.unix.aix 10958 articles. 1 followers. drkirkby (98) is leader. Post Follow

2 Replies
1172 Views

Similar Articles

[PageSpeed] 41

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
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
nospam52 (1566)
9/6/2006 6:39:56 PM
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 the format of each field. -- Chris On Nov 14, 12:25 pm, Prachet <prachetmoha...@gmail.com> wrote: > 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 Try this -- all on one 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,49,50,52,54,56,58 * * * * filename Sure, it looks inelegant, but elegance costs extra. Remember, my advice is worth every penny you paid for it! Alternatively, use "at" instead of "cron". Set up a script: #!/bin/sh # Script named "myScript" at now + 2 minutes <<! /pathTo/myScript ! ..... perform my script functions ... #end myScript Hope that's helpful. In artic...

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 >...

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...

Looking for AIX 5.2 binaries, IS anyone running Ruby on AIX 5.2 ??
Looking for AIX 5.2 binaries, IS anyone running Ruby on AIX 5.2 ?? Regards Bryan Webb On Fri, 8 Jul 2005 bww00amdahl@yahoo.com wrote: > Looking for AIX 5.2 binaries, IS anyone running Ruby on AIX 5.2 ?? We are still running 5.1 here at work and planning to go directly to 5.3 later on this year. -- Matt Nothing great was ever accomplished without _passion_ bww00amdahl@yahoo.com wrote: > Looking for AIX 5.2 binaries, IS anyone running Ruby on AIX 5.2 ?? > We are running ruby 1.8.3 on AIX 5.2. It's more easier to build ruby on AIX with the 1.8.3 version. But you will ha...

Try to set a oracle cron job on AIX 5.2
Hi, I am trying to set up a cron job to backup my database daily, the following is my shell script, but it seems it would not run from the cron, but the manual run is fine, I don't know what is missing from my environment: ================================== #!/usr/bin/ksh #oracle daily backups export ORACLE_SID=MYPRD export ORACLE_HOME=/home/app/oracle/product/9.2.0 export ORAENV_ASK=NO; .. oraenv WORK_IDEN=/san01/pmmprd/alcprd/exp/exp_myprd_full exp system/manager file=$WORK_IDEN.dmp log=$WORK_IDEN.log full=y direct=y exp system/manager parfile=$WORK_IDEN.par ~ =============================================== Any suggestion is appreciated. Philip On Mar 19, 1:33 pm, philc...@rogers.com wrote: > Hi, > I am trying to set up a cron job to backup my database daily, the > following is my shell script, but it > seems it would not run from the cron, but the manual run is fine, I > don't know what is missing from my environment: > > ================================== > #!/usr/bin/ksh > #oracle daily backups > > export ORACLE_SID=MYPRD > export ORACLE_HOME=/home/app/oracle/product/9.2.0 > export ORAENV_ASK=NO; > . oraenv > > WORK_IDEN=/san01/pmmprd/alcprd/exp/exp_myprd_full > > exp system/manager file=$WORK_IDEN.dmp log=$WORK_IDEN.log full=y > direct=y > exp system/manager parfile=$WORK_IDEN.par > ~ > > =============================================== > > Any suggestion is appreciated....

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...

RE: Kerberos 5 v1.5.1 on AIX 5.2 or AIX 5.3
Believe it or not; both solutions seem to work and compilation succeeds ! #define GET_HOST_BY_NAME(NAME, HP, ERR, TMP) \ { \ (HP) = (gethostbyname_r((NAME), &TMP.ent, &TMP.data) \ ? 0 \ : &TMP.data); \ (ERR) = h_errno; \ } Worked and so did... #define GET_HOST_BY_NAME(NAME, HP, ERR, TMP) \ { \ struct hostent my_h_ent; \ (HP) = (gethostbyname_r((NAME), &TMP.ent, &TMP.data) \ ? 0 \ : &my_h_ent); \ (ERR) = h_errno; \ } Thanks for the help ! I will continue testing with my current install base on AIX. I really appreciate the rapid responses and solutions ! Lamar -----Original Message----- From: Ken Raeburn [mailto:raeburn@MIT.EDU] Sent: Monday, September 18, 2006 5:13 PM To: Marcus Watts Cc: Saxon, Lamar; kerberos@mit.edu Subject: Re: Kerberos 5 v1.5.1 on AIX 5.2 or AIX 5.3 On Sep 18, 2006, at 17:56, Marcus Watts wrote: > Lamar.Saxon@americredit.com writes: > ... >> making all in util... >> making all in util/support... >> cc -I../../include -...

Building programs on AIX 5 and running them on AIX 4.3
Hello, Can anyone tell me if it it is possible to build softwares on AIX 5 (either with gcc or aix cc), and run them on AIX 4.3 ? If so, what are the compilation options needed ? Christophe. Christophe Leitienne wrote: > Hello, > > Can anyone tell me if it it is possible to build softwares on AIX 5 > (either with gcc or aix cc), and run them on AIX 4.3 ? > If so, what are the compilation options needed ? Possibly, if you staticly linked everything, but this sort of thing is usually a lot more problematic than initially thought. You really want to build at the same level ...

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...

Compile C on AIX 5.3 and run on AIX 4.3.3
We are running AIX 5.3 (64 bit kernal). We develop using the IBM XL C compiler version 7. For one site we need to run on AIX 4.3.3. Can we compile on AIX 5.3 and run on AIX 4.3.3? Loial wrote: > For one site we need to run on AIX 4.3.3. Can we compile on AIX 5.3 > and run on AIX 4.3.3? No. The general rule is that you compile and build on the earliest level you need to support. Is it not possible to set compiler options to generate code that will run on AIX 4.3.3? On 13 Feb, 15:11, "Gary R. Hook" <n...@nospammers.net> wrote: > Loial wrote: > > For one site we need to run on AIX 4.3.3. Can we compile on AIX 5.3 > > and run on AIX 4.3.3? > > No. The general rule is that you compile and build on the earliest > level you need to support. On Feb 14, 8:22 am, "Loial" <a...@loial.co.uk> wrote: > Is it not possible to set compiler options to generate code that will > run on AIX 4.3.3? No, not at all ... ref: http://www-03.ibm.com/servers/aix/os/ compatibility/ HTH Mark Taylor On Feb 13, 7:24 pm, "Loial" <a...@loial.co.uk> wrote: > We are running AIX 5.3 (64 bit kernal). We develop using the IBM XL C > compiler version 7. > > For one site we need to run on AIX 4.3.3. Can we compile on AIX 5.3 > and run on AIX 4.3.3? It is possible to compile on a later version and run it on a previous version. But you must be really really lucky - I repeat, really lucky, if you see your ...

cron: run-parts vs. run-cron
Hi, I just migrated from RH Linux to Gentoo. I really like Gentoo, but am not sure I like the default cron configuration. RH uses run-parts in the cron-tab to activate the scripts contained in the cron.* directories. This seems like a clear and straightforward way to run the cron jobs. Gentoo uses run-cron to do this. Which means that there is a cron job run every fifteen minutes which runs run-cron and then the appropriate files are deleted in the lastrun directory when the it is time to re-run a job. I have a few questions about this. 1.) It seems to me that the RH method is more eff...

Need to take mksysb backup of AIX 5.2 & 5.1 on AIX 5.1 Server.
Hi All Need docmented notes of step by step installing NIM Server on AIX 5.1 Server. Send me also documented notes on installing the NIM client for Aix 5.2 & 5.1. You can send the docs to prsanwal@gmail.com mail account. Awaiting your quick response. Warm Regards Prateek S How about go search IBM's web site and use the man pages... then if you get stuck, come back here and ask for help... We're not here to do your job for you. seriously! jeez prateek... have a little tact man! you want us to find you a bunch of documentation and mail it to you? and quickly? come on dude... ...

mixing AIX 5.2 and AIX 5.3 on power5?
Looks like I may get a p550q soon. I'm not allowed to migrate the existing applications (yet) to 5.3. I want to install a 5.3 LPAR and begin understanding the VIO layers. Can I mix 5.2 and 5.3 LPARs on the same p550q? I know the 5.2 must be at the whole CPU level and the 5.3 could use portions of a single CPU. Anything else? Mike yes you can have 5.2 & 5.3 on different lpars on the same p550, and yes, you need 5.3 to do micropartitioning with the cpu's. with 5.3 you can also run your lpars in uncapped mode so that unused processing units can be accessed by your active partitio...

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...

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....

Reverse binary compatibility between AIX 5.2 and AIX 5.1
Hi , I wrote a simple "hello world" program on AIX5.2 using gcc compiler . The resultant binary exe(name - getpqstatus) when i ran on AIX5.1 it is giving the below error : exec(): 0509-036 Cannot load program ./getpqstatus because of the following errors: 0509-130 Symbol resolution failed for getpqstatus because: 0509-136 Symbol __strtollmax (number 15) is not exported from dependent module /usr/lib/libc.a(shr.o). 0509-192 Examine .loader section symbols with the 'dump -Tv' command. Does anyone has any ide...

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 > * *...

Mysqld reseting every 5 minutes
Why is mysqld being restarted every 5 minutes ? I'm using OSR 507 with mysql 4.1.10Sb /usr/bin# ./bin/mysqld_safe: 11745 Killed 051214 10:45:01 mysqld restarted ../bin/mysqld_safe: 24785 Killed 051214 10:50:01 mysqld restarted ../bin/mysqld_safe: 9281 Killed 051214 10:55:01 mysqld restarted ../bin/mysqld_safe: 21571 Killed 051214 11:00:01 mysqld restarted Also, How can I make Mysql start at boot up ? ...

FW: Running cron/at jobs with Kerberos
Hello, I am looking for information as to how can a scheduled cron job be authenticated? If I am submitting a cron job from app which might run after 25 hours. How can this be done ??? Thank You Anu M -----Original Message----- From: heidi@cmf.nrl.navy.mil [mailto:heidi@cmf.nrl.navy.mil] On Behalf Of Heidi Hornstein (contractor) Sent: Tuesday, May 16, 2006 4:23 PM To: Anu Mirmira Cc: ccshelp@cmf.nrl.navy.mil Subject: Re: Running cron/at jobs with Kerberos >How to run a scheduled cron job that needs authentication.? This is covered in the Kerberos faq. If you have questions, post to kerberos@mit.edu. ________________________________________________ Kerberos mailing list Kerberos@mit.edu https://mailman.mit.edu/mailman/listinfo/kerberos ...

Runs Fine In Perl :: Not As Cron Job
Dear Folks, I have a Perl application that just unzips a zip file once per day. Perl Program is as follows: (daily.pl is program name) system("cd /home/website/www/htdocs/batch/"); system("unzip -o /home/website/www/htdocs/batch/images.zip"); That is it..i also send a email to myself once this is completed but that isn't the issue because I receive the email every day. Now..when I run this from the SSH prompt in the batch directory, (perl daily.pl) it runs like a champ..no problems no errors. When I run this from a cron job. The unzip never occurs but I get th...

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 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:09:44 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:09:44 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:14:44 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:14:44 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:19:45 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:19:45 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:24:45 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:24:45 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:29:45 vts21 kernel: kjournald starting. Commit interval 5 seconds Jun 29 22:29:45 vts21 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 29 22:34:45 vts21 kernel: kjournald star...

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...

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 switching redo logs every five minutes. Are you refreshing any materialized views on a schedule? Do you have any jobs running through dbms_job updating data in the database? Something is causing you to fill your redo logs every five minutes, and I doubt it is an external process. You may need to query USER_JOBS, or if you have access, DBA_JOBS, to see what may be running. Scheduled materialized view refreshes show up in this table as they run, and you will find any other scheduled jobs along with the time they will next execute. Given that you haven't provided a wealth of information in your post, this is the best advice, I think, for which you can hope. Again, you have a log switch every five minutes, causing your archive log writes. Find out what is changing data in your database at that rate, and go from there. David Fitzjarrell "DBAdmin" <dbadmin@gazeta.pl&...

Web resources about - crontab - how do I run a job every 5 minutes from cron? - comp.unix.aix

D-STAR - Wikipedia, the free encyclopedia
This article is about the digital voice mode used in amateur radio. For the physical quantity, see Specific detectivity . For the concept in ...

HowTo: Add Jobs To cron Under Linux or UNIX?
A step by step guide for scheduling cron jobs / commands under UNIX / Linux / BSD operating systems.

升级至Ubuntu 12.04 Server的二三事_WinSystem子站_IT专家网
昨晚,我手一痒,就把我们的VPS的Ubuntu 11.10升级至了Ubuntu 12.04 LTS版本,结果还是相当顺利的,但是还是微调了一些。 升级至Ubuntu 12.04 Server的二三事

Security Update 2007-005
Alias Manager CVE-ID: CVE-2007-0740 Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.9, Mac OS X Server v10.4.9 Impact: ...

Source Browser
Name Size Parent Directory - Apple16X50Serial/ - Apple3Com3C90x/ - AppleAC97Audio/ - AppleADBButtons/ - AppleADBDisplay/ - AppleADBKeyboard/ ...


Commands tagged whatthecommit - commandlinefu.com
Great UNIX/Bash commands tagged with whatthecommit - see these and many other invaluable command-line nuggets at commandlinefu.com

DuckDuckGo Goodies
More About Settings Goodies Help PRIVACY Policy DontTrack DontBubble WhatIsDNT FixTracking COMMUNITY Develop Translate Support Us Goodies Everyday ...

How-To: Automatically back up your computer
We've seen plenty of crazy ways to keep your precious data safe. Some people burn a few tons of DVDs, others make a montly habit

All Posts
All Posts Pushing updates in real-time with Server-Sent EventsJul 12 2012 Gradle JavaScript Plugin, 1.0Jun 27 2012 Making Cross-Domain Requests ...

Resources last updated: 3/26/2016 8:10:50 PM