Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: cron jobs
(view source)
Revision as of 14:32, 3 September 2018
209 bytes added
,
14:32, 3 September 2018
→Adding paths to cron jobs
Line 85:
Line 85:
This will allow to avoid having to type the full path to the script
This will allow to avoid having to type the full path to the script
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/user/scripts
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/user/scripts
+
+
=== Enable logging to /var/log/cron.log ===
+
Add to /etc/rsyslog.d/50-default.conf the line:
+
cron.* /var/log/cron.log
+
+
Save and restart rsyslog service
+
sudo systemctl restart rsyslog
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version