image
image

|


Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old March 28th, 2007, 03:07 PM
Brajeshwar's Avatar
Registered User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Brajeshwar is on a distinguished road
How do I find out what is this cron job and delete it?

Hi,

I think I did this myself but now I don't know how to remove this.

There is a cron job running daily which backs up my mail to an email address and is slowing down my machine. I've also deleted that particular folder location but the cron job still runs. So, please help me to find or how to look for cron jobs running on my mac and stop it or delete it.

This is the message on the email

Cron <brajeshwar@Brajeshwar> /Users/brajeshwar/Library/Application\ Support/Maza\ Digital/Email\ Backup/emailBackup.sh >> /Users/brajeshwar/Library/Logs/EmailBackup.log

btw, I have deleted that Maza digital folder altogether and the EmailBackup.log shows just "backing up, success" message.

Thanking in anticipation.

Regards
Brajeshwar
Reply With Quote
  #2  
Old March 28th, 2007, 06:40 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 247
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Open a terminal and in there type:

Code:
crontab -l
This should list the contents of the crontab script. If it's a single line and you want to stop it altogether, you can remove it entirely with:
Code:
crontab -r
This removes the entire crontab file so be careful if you've got other cron jobs listed in there!

If there's other lines in it though, and you want to keep them, instead do:
Code:
crontab -e
which will allow you to edit the crontab file, deleting or commenting out the offending line for example.

Last edited by macbri; March 28th, 2007 at 06:41 PM. Reason: added a warning
Reply With Quote
  #3  
Old March 29th, 2007, 01:56 AM
Brajeshwar's Avatar
Registered User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Brajeshwar is on a distinguished road
cool, thanks a lot. I saw the cron, did "crontab -r" and I think it is gone.
Reply With Quote
  #4  
Old March 29th, 2007, 03:36 PM
Registered User
 
Join Date: May 2005
Posts: 1,339
Thanks: 0
Thanked 1 Time in 1 Post
barhar is on a distinguished road
While 'crontab -l' (or -r, or -e) applies to 'crontab' of the current user, such does not affect the 'crontab' file at '/etc/'.

In 'Terminal' (in the '/Applications/Utilites/' folder), enter ...

cat /etc/crontab

... and press <return>; or, in 'Finder' - select the 'Go, Go to Folder...' menu item, enter '/etc/' (less the single quote marks), click on the 'Go' button (of the drop down sheet or the 'Go to Folder' window), and - locate and double click on the 'crontab' file.

Now, determine whether or not a 'mail' related command is present.
Reply With Quote
  #5  
Old March 29th, 2007, 03:52 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 247
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Quote:
Originally Posted by barhar View Post
While 'crontab -l' (or -r, or -e) applies to 'crontab' of the current user, such does not affect the 'crontab' file at '/etc/'.
This is a good point, but the output of the OP's cron job indicates that it is the current user's crontab entry:

Quote:
Cron <brajeshwar@Brajeshwar>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 04:57 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.