SSH and script weirdness
We have created a script to capture an image from a webcam and deposit it into a folder so it is available to the web.
The script was created by a colleague who SSHd into the server and placed the script on the root level in a folder called scripts.
the script works flawlessly when he kicks it off as sudo from the SSH connection. It deposits a 50Kb file into the folder and all looks great.
When I initiate the script locally via sudo I also get a file in the folder. Problem is it's 0Kb, and there's no there there...
Looked at all the permissions, and they look all right...
Any ideas?
Thanks
Phil