Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
iWeb Posted July 7, 2013 Posted July 7, 2013 I need a quick temp fix for my server. How can I run a cron job for the following?
Makoto Posted July 7, 2013 Posted July 7, 2013 Create the following file: /usr/local/bin/swapreset With the following content: #!/bin/bash swapoff -a swapon -a Run chmod +x /usr/local/bin/swapreset Set up a cron job to execute /usr/local/bin/swapreset at your desired interval. http://www.openjs.com/scripts/jslibrary/demos/crontab.php
iWeb Posted July 7, 2013 Author Posted July 7, 2013 CronDaemon /usr/local/bin/swapreset: line 2: swapoff: command not found/usr/local/bin/swapreset: line 3: swapon: command not found I followed the instructions, but I don't think it's working. I'm running on Centos if this makes a difference. (nice cron job calculator, this will be very useful for me, thanks)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.