Hot answers tagged

3

Use a control socket I just discovered what seems to be the most correct method from AutoSSH. However Multiplexing is a very big subject and can be used for other things. Source The idea in Bash script to setup... is to use and integrated method called Control Socket. Through this method you can command an old connection to die. However you will have to ...


1

Change the perl entry to path/to/perl. Often times, commands such as perl and python are actually environment based things and are found in your PATH. As cron lacks that PATH, it's best to use absolute paths in crontab.


1

My crontab only worked when I was logged in as user. I found my solution here: http://unix.stackexchange.com/questions/166362/cronjob-does-not-execute-when-not-logged-in What was the problem is that the scrips were in my home directory which was encrypted. So it will be unmounted and unavailable when I was logged of. You can use the cmd mount to see if ...


1

This took forever to make work on ubuntu 15.10, Had to add a source to get the users normal env vars. my display was :1 for some reason as well. Using the gnome-session first results pid for DBUS_SESSION_BUS_ADDRESS lookup. # Crontab is * 21 * * * /bin/sh /home/tristik/cron.sh #!/bin/sh # cron.sh # Notifies the user of date and time source ...


1

The problem is solved. The problem was caused by the fact that I have edited the above mentioned /etc/tmpreaper.conf file by using a web-based text editor which is built-in into the "Parallels Power Panel" file manager, which, as it turned out, for some reason, uses a Windows-style line breaks (\r\n) instead of a Unix-style ones (\n). So the program was ...



Only top voted, non community-wiki answers of a minimum length are eligible