Timeline for Shell script executed with cron results in different size file than executed manually
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 4, 2015 at 23:05 | comment | added | Gilles 'SO- stop being evil' | There was surely an error message to tell you what is wrong. Error messages from cron jobs are sent over local email. Make sure that you have local email set up and that you read it. | |
| Aug 4, 2015 at 20:24 | comment | added | steve | Revise cron file contents so that you record stdout+stderr "12 21 * * * /var/custom/maint_plan >/tmp/log.txt 2>&1". Also, would be good practice to add a #!/bin/bash to the start of your script. | |
| Aug 4, 2015 at 20:22 | history | edited | Roy Hinkley | CC BY-SA 3.0 | edited body |
| Aug 4, 2015 at 14:27 | vote | accept | Roy Hinkley | ||
| Aug 4, 2015 at 14:13 | answer | added | chaos | timeline score: 2 | |
| Aug 4, 2015 at 14:03 | comment | added | steeldriver | You should probably remove sudo from the script: you are running it from root's crontab anyway, and sudo may not like running without a tty - see Why does cron silently fail to run sudo stuff in my script? | |
| Aug 4, 2015 at 13:53 | history | edited | Roy Hinkley | CC BY-SA 3.0 | deleted 207 characters in body |
| Aug 4, 2015 at 13:39 | history | edited | Roy Hinkley | CC BY-SA 3.0 | deleted 7 characters in body |
| Aug 4, 2015 at 13:30 | history | edited | Roy Hinkley | CC BY-SA 3.0 | added 140 characters in body |
| Aug 4, 2015 at 13:28 | answer | added | Allen | timeline score: 0 | |
| Aug 4, 2015 at 13:28 | history | edited | dr_ | CC BY-SA 3.0 | fixed spelling |
| Aug 4, 2015 at 13:27 | comment | added | klerk | pls post the cron entry | |
| S Aug 4, 2015 at 13:25 | history | suggested | tymik | CC BY-SA 3.0 | added tag, improved formatting |
| Aug 4, 2015 at 13:23 | review | Suggested edits | |||
| S Aug 4, 2015 at 13:25 | |||||
| Aug 4, 2015 at 13:21 | history | edited | Roy Hinkley | CC BY-SA 3.0 | added 174 characters in body |
| Aug 4, 2015 at 13:20 | answer | added | dr_ | timeline score: 1 | |
| Aug 4, 2015 at 13:19 | comment | added | chaos | Can you post the exact mysqldump command from the script, or at best the full script itself? | |
| Aug 4, 2015 at 13:17 | history | asked | Roy Hinkley | CC BY-SA 3.0 |