5

Expect command when triggered by launchd

view full story
linux-howto

http://www.unix.com – Hi folks, Im having trouble with an expect command in a shell script I use to back up mac os x servers. This one is being run on a 10.8.2 Server as part of a larger bash script. The script executes perfectly all the way through when triggered on the command line, but when launchd triggers it at the scheduled time, the rest of the script executes fine, but the expect command doesnt send the password and so the slapconfig command doesn't complete, it just hangs there waiting. Here is the relevant portion of my script: Code: /usr/bin/expect -c ' spawn /usr/sbin/slapconfig -backupdb &quot (HowTos)