iWeb Posted July 7, 2013 Share Posted July 7, 2013 I need a quick temp fix for my server. How can I run a cron job for the following? Link to comment Share on other sites More sharing options...
Makoto Posted July 7, 2013 Share 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 Link to comment Share on other sites More sharing options...
iWeb Posted July 7, 2013 Author Share 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) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.