FAQ Database Discussion Community


script runs fine in terminal but not from launchd

python,shell,terminal,environment,launchd
My Python script runs fine in the terminal but when I try to set it up to run once a day at a certain time with launchd (set up using software called Lingon), I just can't get it to run. From everything I've read, it's better to invoke the Python...

How should be the launchd file be if I don't want the deamon to load and/or start automatically?

mysql,osx-mavericks,launchd,launch-daemon
I'm adding a launchd file for MySQL that I don't want to be automatically started. Just wondering what I should change in the file. /Library/LaunchDaemons/com.mysql.mysql.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key>...

File.getAbsoluteFile() return “/” in unix shell execution

java,unix,relative-path,launchd
I'm using File.getAbsoluteFile() in order to build a relative path to the resources folder. While I'm executing the code within IDE - works great. I've compiled a jar file, and executing it trough script within terminal - works great. In both cases I'm getting correct relative path : "/Users/ie54553/Desktop/MyProject/" I've...

At my end with launchd

bash,terminal,launchd
Hi all and thanks for reading this. I have the below launchd plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.me.sendip</string> <key>Program</key> <string>/Users/me/Documents/sendip.sh</string> <key>StartInterval</key> <integer>60</integer>...

If Launchd does not run today, run alternate command

osx,launchd
Problem synopsis: When my laptop is off at 11PM, launchd does not run the command srd exec. If Launchd runs the command when I get started the next day, it should run srd exec -y instead. Explanation: I have a Launchd configured with Lingon to run Sifttter Redux on my...

Auto Start OpenVPN in shell on a Jail Broken iOS device

ios,jailbreak,openvpn,launchd
I have an iPad Air 2 that is Jail-broken. I currently have OpenVPN installed with a shell version of openvpn: OpenVPN 2.3-alpha1 i686-apple-darwin10 [SSL (OpenSSL)] [LZO2] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110522-1 (2.2.0)] built on May 28 2012 I am trying to set OpenVPN's command line executable as a Launch...

ruby cannot load file when run from LaunchControl?

ruby,watir,watir-webdriver,launchd
I have a ruby file that runs files directly in command line via: ruby /Users/Greg/Dropbox/source_ruby/myapp/main.rb When I try to schedule this using LaunchControl on Mac however (using the same command line call) I get the following error? /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- watir-webdriver (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in...

launchd ExitTimeOut doesn't work

osx,timeout,launchd,launchdagent
I Have a plist file with some job: <dict> <key>Label</key> <string>StartScript</string> <key>Program</key> <string>/Users/ie54553/Desktop/script.sh</string> <key>StartInterval</key> <integer>10</integer> <key>ExitTimeOut</key> <integer>30</integer> <key>StandardOutPath</key> <string>/tmp/Out.log</string> <key>StandardErrorPath</key> <string>/tmp/Err.log</string>...