Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am hoping to find some help here as I am not a script developer, but I think I need one. I have an application (web cam) that creates a file every 10 minutes and the fle is created like "WebCam-01122010-201010001.jpg". What I would like to do is have a script (service) that will detect when this file is created and rename it to webcam.jpg in the same folder or different one. This is completely a new area for me so any and all help would be greatly appreicated. Also the file has been FTP'ed to a linux based hosting web server.
Thanks,
Dave
Posted

If you want to learn bash scripting in linux read the following book.
Advanced Bash scripting guide[^]

After that you need to do following steps
1. Monitor the directory for any file addition. You can do it with "ls" command and its options
2. To rename file use "mv Original_name_of_file New_name_of_file"

If you don't want to learn scripting and just want the script, search it on google or hire somebody who will do it for you.
 
Share this answer
 
v4
Do not advertise for people to do work for you using quick answers. There's a forum here for that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900