While "crontab -l" just dumps the user's crontab (I asked you to do it from root because I know Slackware has some default cron jobs for root) "crontab -e" opens up an editor to modify the crontab.
The editor that will be used to edit the crontab may depend on your user environment (EDITOR or VISUAL environment variables). If they are not set at all or if either one is set to vi then vi will be used to edit your crontab.
Now if you want to run every 15 minutes a script in a user directory, and supposing the script may be run from the user itself without having to use sudo and that the script is in /home/captainfreeky/cleancache.sh , you might want to add something like this in your user's crontab
Code:
*/15 * * * * [ -x /home/captainfreeky/cleancache.sh ] && /home/captainfreeky/cleancache.sh >/dev/null 2>&1
Once you have added that save the file just like you would with any other file you edited and just wait for cron to pick up your scheduled job.
If you don't know how to use whatever editor is being used fro editin yout crontab run something like this:
Code:
echo "$(crontab -l)
*/15 * * * * [ -x /home/captainfreeky/cleancache.sh ] && /home/captainfreeky/cleancache.sh >/dev/null 2>&1" | crontab -
That should append what you want to your user's crontab ... if it happens to be empty it can be simplified like this:
Code:
echo "*/15 * * * * [ -x /home/captainfreeky/cleancache.sh ] && /home/captainfreeky/cleancache.sh >/dev/null 2>&1" | crontab -