Tag Info

New answers tagged

0

This might work: cd ~/steamcmd ./steamcmd.sh https://developer.valvesoftware.com/wiki/SteamCMD#Linux.2FOS_X These are the commands to install updates: Install or update the app using the app_update command (supplying a Steam Application ID). To also validate the app, add validate to the command. To download a beta branch, use the -beta option – for ...


0

sudo mount /dev/sXX && rsync whatever I have tested and i receive email errors if mount fails. Therefore this uses crontab/rsync and notifies me of failed mounts via email. Not really a script, but hey, why do extra work, K.I.S.S. !


0

have you tryed this: python-py | echo '/home/my-sickbeard-install/SickBeard.py' cron -l /home/my-sickbeard-install/SickBeard.py cron -l -restart and it might work fine this way.


0

You can add it to /etc/rc.local. This can be used to run scripts and programs on system boot which doesn't have their own scripts for runlevels. It will run as root Run sudo nano /etc/rc.local and add your line before exit 0 #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit ...


1

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


3

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 ...


-1

cron jobs do not have access to the gui ( if there even is one ). If you want to run a gui app each time you log in to the gui, then use the startup applications tool.


0

As Velkan said, you can use the command man alarm. Or you can refer to the Kalarm manual online: https://docs.kde.org/trunk5/en/kdepim/kalarm/cmdline-operation.html#cmdline-schedule


0

My answer to this question was deleted. I'll try again: This problem is actually not caused by APT DB being locked but the apt cron job tries to update xapian index. If you want to get rid of this error message just remove the apt-xapian-index package. Meta: I guess some admin didn't like earlier answer to this problem as it contained link link to my blog ...


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 ...


0

Firstly you're missing a # in the sha-bang. Secondly I would recommend putting the entire path of your agile executable and thirdly I would reformat the file as it seem to be a mess. I would also suggest checking other log files as there are many different reasons why that mail wasnt sent and try adding logging support to that script if anything on it ...


0

The way the binary retrieves the dbus address seems to have changed lately. On Ubuntu 15.04 (Vivid Vervet) with "notify-send 0.7.6", the following two variables are needed: export HOME=/home/$notify_user export DISPLAY=:0.0 The statement by 'krlmlr' evaluates fine and sets the correct address, but the dialog won't pop up from a cron job.


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 ...


0

As I don't know the exact details of your setup you may have to modify this but with a find and a mv command: find /path/to/output -type f -size -1M -name 'modeloutput*' -exec mv -t /data/secondarydrive/ {} \+ You could add this as a Cronjob. It will move all files in the /path/to/output dircetory with that filename starts with 'modeloutput' and are ...


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 ...


0

Use Crontab UI. This is something I made to allow easy and safe management of crontab. These are some of the features provided by it: Easy setup Safe adding, deleting or pausing jobs. Easy to maintain hundreds of jobs. Backup your crontabs. Export crontab and deploy on other machines without much hassle. Read this for more details.


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.


0

If the command works without any issue, there shouldn't be any issue. But, if the cron is added to the crontab of root, you don't have to use "sudo". I would suggest you to switch to root ( su - root ) and then add the cron entry to root's crontab so that you don't have to worry about the permission. If the copying does not require root permission, you can ...


0

Yes, it's normal. From man run-parts NAME run-parts - run scripts or programs in a directory In your case, run-parts run all scripts in the folder /etc/cron.hourly My /etc/cron.hourly is empty therefore /etc/cron.daily % ls -og /etc/cron.daily total 88 -rwxr-xr-x 1 311 Dez 29 00:15 0anacron -rwxr-xr-x 1 625 Mär 9 12:55 apache2 -rwxr-xr-x 1 ...


0

Yes, this cronjob exists by default. It runs hourly and executes the scripts in /etc/cron.hourly/ (if there are any).


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

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" ...


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 ...


0

I recommend to use bash instead of sh. These are different and usually it's better to use bash in cron jobs. Bash is a superset of sh, meaning everything you can do in sh you can also do in bash and bash has more features than sh. In Ubuntu sh symlinks to dash, not to bash. Furthermore you can execute this cronjob as root to be sure that the permissions are ...


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.


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 ...



Top 50 recent answers are included