1
From [email protected]  Fri Mar 23 20:04:23 2018
X-Original-To: sandeep
Delivered-To: [email protected]
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <sandeep@Sandeeps-MacBook-Air> /Users/sandeep/Library/cootie.pl/cootie.pl cr
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=sandeep>
X-Cron-Env: <USER=sandeep>
X-Cron-Env: <HOME=/Users/sandeep>
Date: Fri, 23 Mar 2018 20:04:22 +0530 (IST)

/bin/sh: /tmp/iu.sh: No such file or directory

I'm getting this mail quite often. What is this about? Is my Mac ok? Do I need to update something or delete anything?

$ crontab -l
4 * * * * /Users/sandeep/Library/cootie.pl/cootie.pl cr
1
  • 2
    Your cron job is failing and sending you mail.
    – fd0
    Commented Mar 23, 2018 at 12:40

2 Answers 2

2

You get mail from cron whenever a cron command fails. In such cases you can use

crontab -l

to see which commands cron executes. From there you have two options

  • Run EDITOR=nano crontab -e to edit your crontab and remove the offending line
  • Fix the error in the script (/Users/sandeep/Library/cootie.pl/cootie.pl in your case)
7
  • how do i fix the script Commented Mar 23, 2018 at 15:38
  • @SandeepRanjan Do you still need it? If yes, maybe ask a new question asking for help debugging the script. Don't forget to include the script into the question, and link to the question here for reference.
    – nohillside
    Commented Mar 23, 2018 at 15:40
  • ok i will add a new ques but where is script Commented Mar 23, 2018 at 15:42
  • @SandeepRanjan In /Users/sandeep/Library/cootie.pl/cootie.pl :-)
    – nohillside
    Commented Mar 23, 2018 at 15:43
  • it did vim /Users/sandeep/Library/cootie.pl/cootie.pl it gives me file with such charecters ^G^@^@^A^C^@^@<80>^B^@^@^@^S^@^@^@^H^K^@^@ Commented Mar 23, 2018 at 16:27
1

As @fd0 said in the comments, your cron job is failing.

When this happens, you receive that email with the error from the cron job.

/bin/sh: /tmp/iu.sh: No such file or directory

That's the error from the execution of the cron job. You should inspect the script and ensure it executes successfully.

1
  • how do i do that.. ? Commented Apr 30, 2018 at 19:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .