vjboc Posted November 14, 2009 Share Posted November 14, 2009 Is there a code to rename a file with cron? Does anyone know that code? I been searching google and I can't find it. Someone at hosmonster gave me this: mv/path/to/sitemap.xml /path/to/Sitemap.xml and it says No such file or directory. I tried adding /Home/username/public_html/ with the path and same thing. Someone please help. Is there a website out there with cron commands? Thanks in advance Vinny Link to comment Share on other sites More sharing options...
web-project Posted November 14, 2009 Share Posted November 14, 2009 I know how to rename using linux command which can be used in cron: mv original-file-name.tar new-file-name-with-date-on-the-end_`date +%Y%m%d`.tar Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 14, 2009 Share Posted November 14, 2009 Is there a code to rename a file with cron? Does anyone know that code? I been searching google and I can't find it. Someone at hosmonster gave me this: mv/path/to/sitemap.xml /path/to/Sitemap.xml and it says No such file or directory. I tried adding /Home/username/public_html/ with the path and same thing. Someone please help. Is there a website out there with cron commands? Thanks in advance Vinny Create a php file with rename code in it and then run that via cron. As long as it is something you can do on the server (permissions allow it), that will work. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Joe234 Posted November 14, 2009 Share Posted November 14, 2009 if you can't read the installation manual, don't bother to install any contribution yourself or post the negative in Reputation! Better of learn to read as the issue in you, NOT OTHER PEOPLE!!!!!!!!!!!!!!!!!! Something tells me you've been here a while! :lol: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.