Tag Info

Hot answers tagged

4

This, admittedly surprising, behavior is documented in man 5 crontab (emphasis mine): Commands are executed by cron(8) when the minute, hour, and month of year fields match the current time, and when at least one of the two day fields (day of month, or day of week) match the current time (see ``Note'' below). [...] Note: The day of a ...


4

If you have only one java instance running, simply: renice -n 5 -p $(pgrep ^java$) $(pgrep ^java$): command substitution; bash replaces this with the output of pgrep ^java$; pgrep ^java$ returns the list of PIDs of the processes whose name matches the regular expression ^java$, which matches all processes whose name is exactly java If you have multiple ...


3

You might want to give full paths in the script not just relative ones backup/world should be something like /home/ftb/backup/world (or whathever the full path to that folder is). The same thing goes for the second line.


2

Try this: pgrep java | xargs -n 1 echo renice -n 5 -p If output is okay, remove echo.


2

The problem is that cron treats % as newlines. From man 5 crontab: Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. To solve that you need to escape the % by \%. Alternately if you want to run the command from a ...


1

Short answer: to your question on the effect of disabling TRIM in Trim ready SSDs, I would not do it. Long answer: here's why: Loosely quoting from an earlier post: TRIM prepares at-least-once written physical blocks on an SSD for new write operations (Wop's), obviating the need to actually erase the targeted blocks immediately before the Wop occurs (as ...


1

You don't put the user who's executing the job in a cron job line. You can see the correct format by running man 5 crontab in a terminal. Each user has their own separate crontab (cron job table). To edit agile's crontab, open a terminal and run: su agile crontab -e This will open agile's crontab in a text editor. Insert the cron job line you have above ...


1

xclip is an application that needs environment variables such as $XAUTHORITY and $DISPLAY to talk to the X11-server. You can create a cronjob the looks as follows: /bin/su your_username -c "export XAUTHORITY='/home/your_username/.Xauthority'; export DISPLAY='$(strings /proc/$(pgrep -n Xorg)/environ | awk -F== '$1 ~ "DISPLAY"{print $2}')'; echo -n "message" ...


1

Stop the MySQL server before you start the backup sudo service mysql stop And you have a permission problem rsync: opendir "/var/lib/mysql" failed: Permission denied (13) therefore use the crontab of your root: sudo crontab -e I would prefer a backup with mysqldump. Thus, the service must be neither stopped nor restarted. mysqldump -u root -p ...


1

What really properly fixed this problem for me was uninstalling apt-xapian-index package. None of the other suggested fixes did anything in my situation. You may read more details from my little blog post.


1

Is it dangerous to enable OpenSSL? No, not really. Firstly, bitcoin comes with its own OpenSSL library statically linked, so the version you have installed doesn't matter. Secondly, enabling RPC SSL can be a good way of hardening your server. The point that page is trying to make, I think, is that Enabling SSL doesn't remove the need to choose a good RPC ...



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