On Wed, Jan 04, 2017 at 01:15:23AM +0000, david wen riccardi-zhu wrote: > I'm trying to get mbsync to run every minute via cron. > > I have the following line in my crontab: > * * * * * mbsync -qqa >/dev/null 2>&1 > > Running mbsync manually works, but nothing seems to be happening via > cron. > > Any suggestions? > > This is on an Ubuntu Server. > > This is also my first attempt at using cron -- not sure if I'm missing > anything obvious. > > I did run a test for the environment, and cron seems to be using my > user, but sh instead of bash. > > Any help would be much appreciated! > > -- > dwrz|朱为文 > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > isync-devel mailing list > isync-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/isync-devel
Hi David, or do you prefer dwrz?, I have found often, that the environment that cron runs does not use the same path as my login. You could try to see where mbsync is located (which mbsync) and use the full path. If that doesn't work, turn on the output of the cron job so you get a local mail with any errors the command generates i.e. remove the ">/dev/null" part. Regards, Robert -- Robert Nilsson gnupg/pgp key:0x6915294D92483A6C Fingerprint=448F A3DB 9CFF 4452 5735 7498 6915 294D 9248 3A6C
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel