I now have a little problem.
I have three scripts that need to run, but depend on which type of files are in a directory.
My three scripts are:
In my temp directory /tmp
If I have a file.mp3, run the sendmps, a jpg run sendjpg, and the rest of the files use the send script.
I would like to know how I can place this in a script:
If I have no files, do nothing
If I have mp3, run only sendmp3
If I have a jpg, run only sendjpg
If I have jpg and mp3, run them both.
I'm not sure on how to place this in a script to select the correct action.