Moving screenshots from 1 folder to another instantly

Posted by Frank on Ask Ubuntu See other posts from Ask Ubuntu or by Frank
Published on 2012-11-16T16:10:47Z Indexed on 2012/11/16 17:16 UTC
Read the original article Hit count: 383

Filed under:

I am hosting a gaming site and once in a while the server automatically creates a screenshot in the servers folder. Unfortunatly it is NOT configurable in the server settings where it puts these screenshots, it just allways dumps the PNG file in the server config folder.

My folder structure is for example as follows:

/home/Game/Server1/

now, what I would like to achieve is that once the server creates a screenshot in 1 of these server folders (I have multiple), the operating system moves the screenshot IMMEDIATLY (which is ALLWAYS a *.png file) to the webserver folder, for example:

/var/www/Server1/filename.png

So that players can see the screenshot on the website.

Anyone any idea on how I can tackle this problem the smartest way? Please note that my ideal situation would be if the PNG file is moved immediatly after creation.

Thanks for your help.

Frank

© Ask Ubuntu or respective owner

Related posts about files