Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Newest
 Editor
Impact
~34 people reached

  • 0 posts edited
  • 0 helpful flags
  • 11 votes cast
Dec
4
comment Why cron not outputting to file?
@JeffSchaller the command I scheduled in cron is bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log not /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log. Doesn't this means that cron will eventually user bash (cron --> sh --> bash --> script). Also my script's first line is #!/usr/bin/env bash already.
Dec
4
awarded  Editor
Dec
4
comment Why cron not outputting to file?
@archemar its not a duplicate. I updated the reason in the question
Dec
4
comment Why cron not outputting to file?
@JeffSchaller Its not a duplicate. I added the reason in the question
Dec
4
revised Why cron not outputting to file?
Adds reason for not a duplicate
Dec
4
comment Why cron not outputting to file?
As I said, Also when I ran the same command (bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log) manually the output is indeed written to the log file., then why this is happening?
Dec
4
asked Why cron not outputting to file?
Oct
7
awarded  Supporter
Jul
19
comment Linux equivalent for Windows Startup
See also this SO answer: Run automatically program on startup under linux ubuntu
Jul
19
awarded  Autobiographer