I hope someone can help me as this is my first attempt to make a shell script.
I have set up an Adobe Software Update server. Using the Terminal.app I can manually send a command to the Adobe Update Software Setup Tool (AUSST) to check if there are new software updates at Adobe, which are then downloaded and available to our users.
The command line is:
sudo /Users/macpostur/Desktop/AUSST/AdobeUpdateServerSetupTool --root=/Library/WebServer/Documents/Adobe --incremental
It asks for the password and then runs.
I would like to make this command run once every day at 23:00, preferably as a shell script run by launchd. I bought Lingon and I just downloaded LaunchControl but I am getting nowhere. Errors I get when this is run have error codes 126, which seem to say that permissions are not ok.
The thing is I don't know what should be inside the .sh file.
1. What text from the command should be inside the .sh text file? Complete.
2. What permissions should I set for the .sh file? chmod + what?
3. Where should I keep the .sh file?
4. What settings should I set in Lingon or LaunchControl? Or more specifically: How do I run this every day?