Home › Forums › OS X Server and Client Discussion › Misc. › Cron Help
- This topic has 1 reply, 1 voice, and was last updated 17 years, 11 months ago by
kamikaze.
-
AuthorPosts
-
December 3, 2008 at 7:41 pm #374921
kamikaze
ParticipantHi everyone.
I’m having some issues with my MobileMe sync not syncing when it’s supposed to, so I found that you can sync from the command line and want to schedule it to run every 15 minutes.
I want to run this command with cron, but it keeps mailing me saying that the dotmacsyncclient has timed out, yet if i run the following command directly from the terminal it works fine.
/System/Library/PrivateFrameworks/DotMacSyncManager.framework/Versions/A/Resources/dotmacsyncclient syncI’ve even tried putting this command in a shell script which again, works fine if I run it manually from the terminal, but not if cron runs it.
this is the mail message I get if cron runs the job:
Message 1: From Trevor@trevor-kidds-mac-pro.local Wed Dec 3 14:05:30 2008 X-Original-To: Trevor Delivered-To: Trevor@trevor-kidds-mac-pro.local From: Trevor@trevor-kidds-mac-pro.local (Cron Daemon) To: Trevor@trevor-kidds-mac-pro.local Subject: Cron <Trevor@trevor-kidds-mac-pro> /Users/Trevor/dotmacsync.sh X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=Trevor> X-Cron-Env: <USER=Trevor> X-Cron-Env: <HOME=/Users/Trevor> Date: Wed, 3 Dec 2008 14:05:30 -0500 (EST) 2008-12-03 14:05:30.612 dotmacsyncclient[5833:10b] SyncServer is unavailable: timed out trying to connectNB: the above message resulted when I ran the command from the shell script that I wrote. I get the same thing if I just try to run the command directly from cron.
I know I”m new here, but I’d really appreciate any help here. I’m pulling out what little hair I have left with this.
Thanks in advance
Trevor
December 5, 2008 at 6:19 am #374933kamikaze
ParticipantHey, thanks for the reply.
I’ve tried your suggestion and am getting the same result, only without the mail being sent with the failure. If it helps, it seems to spawn the dotmacsyncclient process (it shows up in the activity monitor) but it doesn’t work. I know it works when the little sync icon in my menu bar starts to spin.
I just think it’s strange that I can type that command into the terminal, hit return, and it works flawlessly, yet when I try to automate it if doesn’t.
this behavior isn’t limited to the machine I’m having problems with either, none of my attempts to automate this process have worked on my macbook either.
Any other ideas?
Thanks
Trevor
-
AuthorPosts
- You must be logged in to reply to this topic.