New answers tagged cron
2
votes
Accepted
Start @reboot crontab script in a new tmux/byobu session and be able to connect to it
No answer so far. Adding here me solution: Sometimes, you don't notice the easy solution!
I realized I don't need byobu or tmux for this.
What I did is writing logs to a local file and mailing the ...
0
votes
notify-send to other user by crontab
Adding head -n 1 works because now there are three lines of data from pgrep -u $LOGNAME gnome-session.
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session | ...
0
votes
Accepted
I need to automatically start a non GUI application through a terminal line because I don't have a GUI
You can put a line in the root crontab like this
@reboot your-script-here
and your-script-here will get started at boot.
To edit the root crontab, use the command
sudo crontab -e
0
votes
How do you set the timezone for crontab?
This is an updated answer for Ubuntu 22.04.
The answer is about setting the timezone for how jobs are scheduled. Also the answer assumes that you do not want to change system-wide default timezone. ...
0
votes
unable to mount external drive from cron (using udisksctl)
Solution (with security implications?)
I changed the allow_any default from auth_admin to yes, followed by ... restart polkit.service. Now the drive mounts from cron. The entry in the ...Udisks2....
3
votes
Accepted
unable to mount external drive from cron (using udisksctl)
Ubuntu 23.10 and later
Create and edit a .rules file under /etc/polkit-1/rules.d/ like:
sudo nano /etc/polkit-1/rules.d/10-udisks.rules
... and to allow a certain user, copy/paste the following in it,...
Top 50 recent answers are included
Related Tags
cron × 2268bash × 483
scripts × 447
command-line × 304
server × 168
python × 114
backup × 90
14.04 × 88
16.04 × 70
permissions × 63
php × 63
18.04 × 57
schedule × 55
rsync × 54
email × 50
mysql × 46
ssh × 43
anacron × 43
12.04 × 40
reboot × 40
apt × 37
startup × 37
networking × 35
20.04 × 35
shutdown × 32