Forum Moderators: bakedjake

Message Too Old, No Replies

Cron job help

Would like to change a file date/time

         

Go_Madrid

1:18 pm on Jun 14, 2002 (gmt 0)

10+ Year Member



Not sure if I'm in the right forum for this, but I'm running Linux on an Apache webserver and I would like to know if it's possible to setup a cron job that just changes the date & time of an html file without changing the content. thanks.

chris_f

1:57 pm on Jun 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm afraid I don't know the answer to your question. However, by me posting this you should get an answer quicker.

One question though. Why would you want to do that?

snafu

1:59 pm on Jun 14, 2002 (gmt 0)



man touch

ndjp

7:15 pm on Jun 14, 2002 (gmt 0)

10+ Year Member



touch -m FILENAME

But why?

jatar_k

7:21 pm on Jun 14, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



could you make spiders think your files are updated so it always respiders the pages?

Go_Madrid

10:24 am on Jun 17, 2002 (gmt 0)

10+ Year Member



Thanks for the replies - I would like to try it to see if the page is spidered more often by the search engines if they think it is regularly updated.

SmallTime

10:30 am on Jun 17, 2002 (gmt 0)

10+ Year Member



I can't think they would be fond of the idea.

satanclaus

6:03 pm on Jun 17, 2002 (gmt 0)



This place is so cool because I'm always learning something new.(never used touch before)

Go_Madrid the engine you're targeting would probably do some sort of comparison between new and old versions of the page other than a date check. Page size check for example.

Perhaps you should just make your pages dynamic in some way instead of just changing the stamp.