schedule with Lingon help please!

Hi there. I am relatively new to using Terminal, command line, etc. Here's my situation, which is rather simple. I have a sync script located as a .command file in my user home folder. All i want to do is schedule Lingon to call it up every night at 1 am. The problem is, no matter what I do to test it out it never seems to run. Anyone familiar with Lingon?

I have named the label in the "Basic" tab. In "Program Arguments" is where I am confused. I have put the entire rsync command and also tried just the path to command itself etc. In the "Misc" tab I scheduled it to run every night at 1 am by leaving all fields blank except Minute-0 and Hour-1. In "Paths" I put the location of the .command file in the user home folder in the "Working Directory" field. That's it...but nothing happens!

I think my problem may lie in the "Program Arguments" field, but I'm not sure. Anyone help?

thanks so much in advance

multiple, Mac OS X (10.5.5)

Posted on May 16, 2009 8:11 PM

Reply
3 replies

May 17, 2009 10:24 AM in response to kbtech

You can examine (but please, do not alter !) some of the existing periodic launchd plists as examples.

eg:

cat /System/Library/LaunchDaemons/com.apple.periodic-daily.plist


Please post the unedited content of your plist and where you have located it (probably, ~/Library/LaunchDaemons )

and the unedited content of your script.
As well, please post the the result of

ls -l <your script>

eg:

ls -l ~/Library/Scripts/yourscript.command

substituting of course with the actual path to, & name of, your script.

-- David

May 19, 2009 8:24 AM in response to kbtech

I don't consider myself a Lingon "expert," but I've had success scheduling and running basic Applescripts and shell scripts. I always use Lingon's "Basic Mode." Things to try:

1. Open Terminal and type the full path to your script (ie: /Library/Scripts/myScriptName.sh) or your desired Terminal command. Make sure it runs as you wish. If the script is owned by root you will have to use "sudo" ie: sudo /Library/Scripts/myScriptName.sh)

2. Once the script/command runs properly in Terminal, simply copy the statement and paste into the Lingon "Program Arguments" field (Step 2 in Basic Mode).

3. Check your permissions. If saving in Lingon as a "User Daemon" I put the script in the /Library/Scripts folder, change the owner to root, and then give root full access (chmod 700 or -rwx------). If saving as "My Agents" in your Home folder, permissions might not be an issue.

4. You may want to try renaming your script with .sh instead of .command (I'm not sure about this, having never used .command files myself).

5. Make sure you Restart the computer after finishing with Lingon.

Good luck!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

schedule with Lingon help please!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.