Run Cron Job every 2 minutes interval
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?
On 2008-11-14 20:25:17 +0000, Prachet <email@example.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 <firstname.lastname@example.org> 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
the process name is sync_data.
[root@tmp]# pstack 18773 (yesterdays' pid)
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?
How about writing a script instead that runs in the background all the
time and uses sleep.
sleep 10 (or 15)
>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
../build > log 2>&1
cat log | mail -s "log" email@example.com
firstname.lastname@example.org 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.
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 **
INPUT date1 yymmdd8. rawtime price;
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.email@example.com>,
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.
Can anyone suggest anything?
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
How do I get it, which kron me every 5 minutes a
"clear host *" implements?
Unix ... if I have to explain, you wouldn't understand!
On 27.11.2004 11:41 Knut Rauscher wrote
> How do I get it, which kron me every 5 minutes a
> "clear host *" implements?
Install rancid/clogin  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 Nipper, AN45
On Sa...cron job occasionally does not run
This is a multi-part message in MIME format.
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, firstname.lastname@example.org
staggered into the Black Sun and said:
> I have a script tha...running idl from a cron job
can someone give me a link to show how to run an idl peice of code
from a unix shell script
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
IDL program (let's say is called idl_startup.pro)
- start idl
Then, in idl_startup.pro put in
[your initialization for IDL]
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
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
On 28 Jun 2005 23:41:16 -0700,
email@example.com <firstname.lastname@example.org> wrote:
> Hi all,
> AIX ...Where can we Check for the running cron Jobs
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 .
> 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.
runcobol REP-WEB3.COB K
ftp -n ftppublish.ai.org </flextmp/fg4/ftpweb2.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?
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.
> 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
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?
Posted via http://www.ruby-forum.com/.
On 8/21/06, Russell Fulton <email@example.com> 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?
* * * * /myscript
> 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?
> * *...Analyse LOG every 5 minutes
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.
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.
How about the ERRORABEND option. See DOCs for details.
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
Thanks for the help.
Willem Van der Mescht
(If there were more horses around
the world would be more stabilised)
> 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 Zero <firstname.lastname@example.org> 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
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?
> 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?
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
is a standard/acceptable practice. Thanks for any comments.
Jun 29 21:54:44 vts21 kernel: EXT3-fs: mounted filesystem with
Jun 29 21:59:44 vts21 kernel: kjournald starting. Commit interval 5
Jun 29 21:59:44 vts21 kernel: EXT3-fs: mounted filesystem with
Jun 29 22:04:44 vts21 kernel: kjournald starting. Commit interval 5
Jun 29 22:04:44 vts21...