Tag Info

New answers tagged

1

According to man dh_installcron: --name=name Look for files named debian/package.name.cron.* and install them as etc/cron.*/name, instead of using the usual files and installing them as the package name. So name your debian/package-name.foobar.cron.d, and add to debian/rules: override_dh_installcron: dh_installcron --name=foobar


0

a single rtcwake does not work because with '-m no' option the command after && is being run immediately, not at wake time. Anyway these two lines do the trick: */5 * * * * sudo rtcwake -m no -l -t $(date +\%s -d 'tomorrow 00:01') 2 0 * * * /home/alex/perl/bkup/bkup.pl


0

I have seen the same issue on Ubuntu 14.04.1. I am still not sure what is causing the issue, but this will re-create the fifo/socket and allow you to reattach to the screen session. kill -CHLD <PID_OF_SCREEN>


1

@reboot is supported in Ubuntu. The reason why your entry @reboot /var/kiosk/btest.sh doesn't work in /etc/crontab is because it's missing the user field. The correct syntax would be @reboot root /var/kiosk/btest.sh


0

Rather than adding MAILTO=, after which cron won't send any emails at all, end the crontab entry with > /dev/null 2>&1. This limits the scope of the "be quiet" to the entry that it ends with...


0

I would expect you to do this with a "reload" or "restart" option from -outside- the script. See mysql and apache as an example: "service apache restart". Alter your upstart script so it has a "restart" feature and then add that as a command to "/etc/crontab". And yes, I understand this is not your intended answer but I also expect that the upstart script ...


0

This was caused by SMART data being enabled for the drive in question. Disabling SMART data solved this : sudo smartctl --smart=off /dev/sda Presumably it kept rerunning some kind of internal self-test 30 minutes after the disk spun up and got into a loop; as this was at the hardware layer the rest of the computer was unaware of it going on hence I ...


1

It is because cron daemon's activity goes to system logs. It is not annoying in my opinion, rather life saving if - let's say - you have to know if crontab is executed or not. Beside that you can control the output by editing the /etc/rsyslog.d/50-default.conf file to this: *.*;auth,authpriv.none,mail.none,cron.none -/var/log/syslog The relevant part ...


0

The main problem with this kind of user-crontab entry is that it needs bash to be able to run. So the easiest way is to create a small bash-script like /home/dylanfa88/keep-chrome-running and put this in your user-crontab. * * * * * /bin/bash /home/dylanfa88/keep-chrome-running


2

You should use 0 */2 * * * istead of * */2 * * *.


1

The script does not save its sent email, it just sends out the mail - that's all.


0

Not enough rep to comment on your answer, @Stef-K. Unfortunately your answer is far off the mark. :-/ The user crontabs, as given by crontab -e or crontab -l, are NOT system crontabs. User crontabs are stored as files within /var/spool/, typically /var/spool/cron/crontab/username The only safe/clean way to edit these is using crontab -e, as it ...


1

If you are in need of launching a web page via browser then add to startup applications something like this: /usr/bin/firefox /path/to/html/file.html or /usr/bin/firefox http://some-site.com/ No need to run .desktop file. EDIT: So in your case chromium-browser --kiosk file:///home/user1/Desktop/mltest/vms.html


0

You just installed 3 different applications providing sendmail in addition to most likely screw the config file of postfix, maybe more? However, it is no real disaster, as you sound slightly new to this topic would I suggest that you do a sudo apt-get purge sendmail postfix ssmtp. Then decide on which one of the to install again. If you decide to go with ...


0

I don't have enough points to comment on the selected answer above but: The syslog conf file may be under /etc/rsyslog.d/ in newer versions. Our 12.04 system has cron.* in the 50-Default.conf file. It was commented out by default. Un-commenting it and restarting the rsyslog service should enable cron logging.


1

There are some ways to configure cron to run a job 30 minutes after startup. Jenkins does that by hashing the function and using H/30 * * * * for example. It could also be a thread sleeping for 30 minutes and spawning a silent cpu killer process. Some ideas there : Did you try htop as root? Some processes may be invisible, I've seen this on Debian ...


0

The crontab does run the script with bash; But you're running it recursively with at. And at uses /bin/sh. Because of an earlier problem, the time specification for at is now+0min - so it's running again just at the end. That run fails, so there is no loop, at least. The problem leading to the now+0min is that n % 1 is 0, so $RANDOM % 1 = 0, and rmin ...


0

I note in the crontab(5) man page, this: The ``sixth'' field (the rest of the line) specifies the command to be run. The entire command portion of the line will be executed by /bin/sh or by the shell specified in the SHELL variable of the cronfile. So, you may want to specify bash either with ...



Top 50 recent answers are included