shell scripting

running rsync over ssh with key-based authentication in Launchd

I wrote a shell script to run on my mac, rsync (over ssh with key-based authentication) over a bunch of content, check that the content that came over is a recent copy, and then do various things based on the new data. When I ran the script on my own it executed perfectly, but when I ran it scheduled through launchd it failed. Even more puzzling was that triggering it to run directly via launchd through LaunchControl would cause it to run correctly.

Subscribe to RSS - shell scripting