|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
how can I automatically change a filename on my server at a given time of day?
I'm sure there's a way to do it with cron... but I don't know what it is :P
|
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
or perhaps I could change the permission to make the file unavailable at certain times? hmm...
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Posts: 267
|
you can cron a cgi script that does it - or cron a php script to do it.
__________________
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
that's what I was just thinking.. every day is a school day :P
|
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
crontab cronfile
where cronfile can possibly contain: * 10 * * * mv 1.html 2.html which means rename 1.html to 2.html at 10.00 each day |
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
Should have been:
0 10 * * * mv 1.html 2.html |
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
would cronfile just be a plain text file, like cronfile.txt, with the command in it?
|
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
yes, it should be a plain text file
|
|
|
|
|
|
#9 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
awesome, thanks buddy
|
|
|
|
|
|
#10 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
You're very welcome
|
|
|
|
|
|
#11 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
sure did - I actually found an easier way to do it. cronjob:
cd public_html/temp; mv 1.html 2.html thanks though, you got me on the right path! |
|
|
|
|
|
#12 |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
cron and dont forget to up it as ascoo
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
#13 |
|
web
Join Date: Dec 2001
Location: On icq: 85-483-060
Posts: 9,533
|
This can be quite usefull and helpfull when it comes to getting work done
Wolfy - research more about it and you will love it even more ;) |
|
|
|