Sponsored Content
Full Discussion: Trouble with cron
Operating Systems Linux Trouble with cron Post 303018857 by killerserv on Sunday 17th of June 2018 10:59:04 PM
Old 06-17-2018
Trouble with cron

Hello World!
Need some advise. I setup few crons on my server, but to my surprise none of them seems working. Any idea what am i missing here? Is group rights a must in order for cron to run?

Crontab:
Code:
mandrel@sp74t0006c :[/etc/cron.d(14825)]$cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

mandrel@sp74t0006c :[/etc/cron.d(14825)]$

My cron:
Code:
#################################################################################################################
#
5 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/mapsmove/run_mandrel_mapsmove.sh > /dev/null 2>&1
20 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/oref_inspect/run_oref_inspect.sh > /dev/null 2>&1
25 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/oref_inspect_bdft/run_oref_inspect_bdft.sh > /dev/null 2>&1
30 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/sizedata/run_sizedata.sh > /dev/null 2>&1
35 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/summary/run_sophia_summary.sh > /dev/null 2>&1
0,10,20,30,40,50 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/qc/run_qc_daemon.sh > /dev/null 2>&1
5,15,25,35,45,55 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/ellipsometer/run_ellipsometer_daemon.sh > /dev/null 2>&1
0,10,20,30,40,50 * * * * /opt/fabpkg/home/mandrel/data_adm/sophi/ivs/run_mandrel_ivs.sh > /dev/null 2>&1

---------- Post updated at 10:59 AM ---------- Previous update was at 10:41 AM ----------

Sorry guys, i should have be more careful. Ive screwed up with the paths. Corrected it and now it works.

Kindly delete this thread. My appology!
 

10 More Discussions You Might Find Interesting

1. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

2. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

3. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

4. UNIX for Dummies Questions & Answers

Trouble with cron

Here is what my crontab shows when I do crontab -e # fields minute(0-59) hour(0-23) day(1-31) month(1-12) day of week (0-6, 0=sun) # 30 04 * * 06 /home/rkruck/scripts/shell/backup 15 9 * * * /home/rkruck/scripts/shell/get_passwd_files The first script runs no problem as... (5 Replies)
Discussion started by: rkruck
5 Replies

5. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

6. UNIX for Dummies Questions & Answers

How are cron.allow and cron.deny read?

Hi, all! I was working on my Debian, minding my own business but then I wanted to see what happened if the same user was included on both cron.allow and cron.deny :p I would have bet that cron.deny was going to override cron.allow for security reasons, but my computer proved me wrong:... (3 Replies)
Discussion started by: pereyrax
3 Replies

7. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

8. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

9. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

10. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies
CRON(8) 						      System Manager's Manual							   CRON(8)

NAME
cron - clock daemon SYNOPSIS
/usr/sbin/cron DESCRIPTION
Cron executes commands at specified dates and times according to the instructions in the files /etc/crontab and /etc/crontab.local. None, either one, or both of these files may be present. Since cron never exits, it should only be executed once. This is best done by running cron from the initialization process through the file /etc/rc; see init(8). The crontab files consist of lines of seven fields each. The fields are separated by spaces or tabs. The first five are integer patterns to specify: o minute (0-59) o hour (0-23) o day of the month (1-31) o month of the year (1-12) o day of the week (1-7 with 1 = Monday) Each of these patterns may contain: o a number in the range above o two numbers separated by a minus meaning a range inclusive o a list of numbers separated by commas meaning any of the numbers o an asterisk meaning all legal values The sixth field is a user name: the command will be run with that user's uid and permissions. The seventh field consists of all the text on a line following the sixth field, including spaces and tabs; this text is treated as a command which is executed by the Shell at the specified times. A percent character (``%'') in this field is translated to a new-line character. Both crontab files are checked by cron every minute, on the minute. FILES
/etc/crontab /etc/crontab.local 7th Edition October 23, 1996 CRON(8)
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy