Cronjob doesnot exist on the machine but running every sunday


 
Thread Tools Search this Thread
Operating Systems Solaris Cronjob doesnot exist on the machine but running every sunday
# 1  
Old 09-10-2012
Cronjob doesnot exist on the machine but running every sunday

I have deleted a particular cronjob couple of months ago but the jb is still running every sunday, even though it is not present in /var/spool/cron/crontabs/root file.

Please assist.
# 2  
Old 09-10-2012
What about other users' cron files?
# 3  
Old 09-10-2012
Quote:
Originally Posted by CarloM
What about other users' cron files?
Everything else looks good
# 4  
Old 09-10-2012
What version of Solaris is this?

There should be a cron job (as part of the O/S) that is run periodically to re-read all crontabs to update any changes. If this job isn't there/running and the system hasn't been rebooted, then your Sunday cron job may still be in memory (as loaded at boot time).

Find out how to stop, then start, the cron process on your version of Solaris and stop and restart it from the command line.

Subsequently, you should investigate why cron changes aren't being updated and fix it. This update should be being done by another cron job which has either been deleted or commented out.

Last edited by hicksd8; 09-10-2012 at 05:32 PM..
# 5  
Old 09-10-2012
Quote:
Originally Posted by hicksd8
What version of Solaris is this?

There should be a cron job (as part of the O/S) that is run periodically to re-read all crontabs to update any changes. If this job isn't there/running and the system hasn't been rebooted, then your Sunday cron job may still be in memory (as loaded at boot time).

Find out how to stop, then start, the cron process on your version of Solaris and stop and restart it from the command line.

Subsequently, you should investigate why cron changes aren't being updated and fix it. This update should be being done by another cron job which has either been deleted or commented out.
Thank you for your reply.

Quote:
unix@mytest00 >uname -a
SunOS mytest00 5.10 Generic_141414-01 sun4v sparc SUNW,Sun-Fire-T200

unix@mytest00 >uname -r
5.10

unix@mytest00 >isainfo -v
64-bit sparcv9 applications
asi_blk_init
32-bit sparc applications
asi_blk_init v8plus div32 mul32
# 6  
Old 09-10-2012
Okay, Solaris 10.....

Code:
svcadm restart cron

Also, re-read my previous post, I edited it.

If that doesn't stop the job running on Sunday's then I must agree with CarloM that it must be in another crontab somewhere (different user).

Last edited by hicksd8; 09-10-2012 at 05:48 PM..
# 7  
Old 09-11-2012
There are some system cron jobs in solaris machine ...but one more chance of this that ...there should be some others user's crontab enabled and they are running ...You have to check for other users ..!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to setup cronjob 3rd sunday of every month?

Hi All, I need to set up cronjob for every third sunday of the month. here i have seen one example for 4th sunday for every month in another post and it looks perfect.can anyone please help me to understand this and help me to get the setup for third sunday of every month.Thanks. this is... (7 Replies)
Discussion started by: netdbaind
7 Replies

2. Shell Programming and Scripting

My Cronjob is not running

I created a script, size=`du -sm` size=`echo $size | sed 's/.$//'` size1='30720' if then { find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec ls -l {} \; find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec rm -f {} \; } else echo "Directory size doesnt exceed Threshold... (12 Replies)
Discussion started by: shaal89
12 Replies

3. UNIX for Dummies Questions & Answers

Script not running through Cronjob

Hi, I have a .ksh script which updates the database. The script is running fine manually but it is not running through cron.All the file permissions are fine. The script contents are as below: #!/usr/bin/ksh ddate=`date +%Y%m%d` echo $ddate nohup sqlplus crm/crm @db_state_sync.sql >>... (3 Replies)
Discussion started by: shivangi
3 Replies

4. Shell Programming and Scripting

How to execute cronjob running in a different machine?

Hi, I am developing 1 script in which I need to execute one cron job running in different server and my script is in different server. so can any one help me to execute the cronjob set in different server. Thanks in advance. (1 Reply)
Discussion started by: mridul10_crj
1 Replies

5. Shell Programming and Scripting

Cronjob not running

Hi, having problem running my cronjob, need the script to run every monday. And the error i'm getting is "No such file or directory", i've tried to change the env to /bin/bash and also /usr/bin/sh but both failed. Need help here. tq 0 0 * * 1 /bin/bash /home/omc/munir/raccli_rnc.sh Rgds... (3 Replies)
Discussion started by: adawiyah29
3 Replies

6. UNIX for Dummies Questions & Answers

How to Set up a cronjob On 4th Sunday of every Month?

How to Set up a cronjob which will run On 4th Sunday of every Month at 8:00 PM :( (11 Replies)
Discussion started by: tp2115
11 Replies

7. UNIX for Dummies Questions & Answers

how to cancel a cronjob if the cronjob still running

hi everyone I'm newbie in this forum hope I can get some help here :) I have a command in crontab that executed every 1 minute sometime this command need more than 1 minute to finish the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Discussion started by: 2j4h
7 Replies

8. UNIX for Dummies Questions & Answers

Crontab running every alternative sunday

Hi, I want to run a script starting this 28 Mar 2010 every alternative sunday. Can you give me the crontab entry for the same. Mine is a HP unix. (2 Replies)
Discussion started by: Krrishv
2 Replies

9. UNIX for Dummies Questions & Answers

Possibility of logging into linux machine when the user does not exist locally

Hi, I am trying authenticate ssh users login using third party server (radius) instead of local system authentication. I have modified my /etc/pam.d/sshd with required server auth configuration and able to authenticate user using radius server and the user is able to ssh into this linux... (2 Replies)
Discussion started by: dhandapanik
2 Replies

10. UNIX for Advanced & Expert Users

Cronjob is not running

hi, I have a shell script which has a sql plus code and unix if else condition. The file is located at root.I logged in as a root user and i have all permissions. I tried to set up a cron job so that the script need to run every minute.the script is running successfully without any problem. I... (2 Replies)
Discussion started by: sanei05
2 Replies
Login or Register to Ask a Question