Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Somethings wrong with my cron job

Quote Reply
Somethings wrong with my cron job
I know cron jobs have been discussed a lot throughout this forum, I searched and couldn't find anything for my case...

I'm trying to get the auto build to work and currently unsuccessful, here is my current code for the cron job:
Code:
# Remove backup and new files before rebuild

touch /www/f/fullworm/cgi-bin/files-n-links/admin/backup/junk

touch /www/f/fullworm/htdocs/files-n-links/New/junk

rm /www/f/fullworm/cgi-bin/files-n-links/admin/backup/*

rm /www/f/fullworm/htdocs/files-n-links/New/*



# Rebuild Links pages and log actions

/www/f/fullworm/cgi-bin/files-n-links/admin/nph-build.cgi > /www/f/fullworm/cgi-bin/files-n-links/admin/logs/build_links.log
I was wondering what the touch command does, as I've look in the backup directory and all files are still there (so I know the script hasn't got that far).

YellowKard
Quote Reply
Re: Somethings wrong with my cron job In reply to
Take a look at Bobsie's instructions:

http://goodstuff.orphanage.com/cron_instr.html

Thomas
http://www.japanreference.com
Quote Reply
Re: Somethings wrong with my cron job In reply to
Remove the touch lines. "touch" will NOT delete the backup files.

Regards,

Eliot Lee