Questions tagged [launch-agent]

61 questions
0
votes
0 answers

launchd login script doesnt work

I write the following plist: Label
Zange
  • 11
  • 2
0
votes
1 answer

Need to launch mongod using launchctl

I have installed MongoDB using manual option. When I fire mongod it will take parameters from somewhere else specially for dbPath. I want to have my own dbPath without specifying it with --dbPath each time. So I found option to provide mongod.conf…
Premal
  • 551
  • 1
  • 6
  • 25
0
votes
1 answer

How can I daemonize a grunt watch command using a launchd .plist file?

I am trying to run grunt watch when my user logs into my OS X machine, so that I don't have to run grunt watch in my $APP_ROOT dir manually every time. I have the following org.grunt.watch.plist file within /Library/LaunchAgents:
tonix
  • 6,671
  • 13
  • 75
  • 136
0
votes
0 answers

failed to import module in python script when run using launchagents

I wrote a python script which works if I run it normally (python path/to/file.py). I need it to run automatically every few hours. So I created a plist file in /Users/User/Library/LaunchAgents which triggers a .sh file which eventually triggers the…
Lassadar
  • 1
  • 1
0
votes
1 answer

Launch Mac app on OS load won't work

I am trying to create a plist file, to put within the LaunchAgents of the users Mac. This plist I will use to make sure it opens a specific application every time the Mac turns on or the user logs in. To my knowledge I am pretty sure the plist…
user7184133
0
votes
1 answer

Running command line app in the background using launchagents mac os x

I have a command line application which needs to run when the user logs in. I have added a XML file to the user's launch agent directory. The application runs but the problem is it opens the terminal when it runs. I want it to just run in the…
Anand Srinivasan
  • 450
  • 5
  • 20
0
votes
1 answer

LaunchAgent with WatchPaths on mounted network share

I've got a (Synology) network share which is mounted on a Mac mini 1. I would like this share to be synced to Mac mini 2: When the content of a specified directory is changed Besides that, it should sync every hour I've created a rsync script and…
Matter
  • 429
  • 1
  • 4
  • 15
0
votes
1 answer

Include current date as program argument in LaunchAgents

Suppose I want to do something with a file that contains the current date. At a bash prompt I could just do this: $ touch /Foo/$(date +%Y-%m-%d) How could I do that in a LaunchAgents plist, where I don't have $()…
VoteyDisciple
  • 37,319
  • 5
  • 97
  • 97
0
votes
2 answers

LaunchAgent plist doesn't find path to AppleScript in iCloud

For some reason, Dropbox terminates (crashes or quits) after being online a few days, with no explanation. I therefore started to research a way for AppleScript to automatically restart the application when it terminates. That led me to this…
P A N
  • 5,642
  • 15
  • 52
  • 103
0
votes
1 answer

Using LaunchAgents in El Capitan (10.11)

I have a series of scripts that run at the load of one standard user, one admin user and the Default User Template. For this particular example, they configure the background and the screensaver (since those are ByHost preferences that can't…
ghostof101
  • 187
  • 1
  • 9
0
votes
1 answer

LaunchAgent - Pass Parameters to Application

I have a LaunchAgent which invokes an application when the user logs in. The application loads a website. LaunchAgent
heymega
  • 9,215
  • 8
  • 42
  • 61
0
votes
0 answers

OS X LaunchAgent - Run when desktop ready?

I've created a bash script which does some complex stuff, including some bits of Applescript which involves clicking pop ups, its to run on every new account created on the machine to set up some browser extensions for users (Adblock etc) The script…
realdannys
  • 1,383
  • 1
  • 12
  • 18
0
votes
1 answer

LaunchAgent run bash script as root

Label com.nords.locationchanger
Sean256
  • 2,849
  • 4
  • 30
  • 39
0
votes
0 answers

Ruby Trouble Interacting with Filesystem when run from LaunchAgent

I have a Ruby script that I am triggering with an OS X launchagent. The script reads a bunch of files (21 total) from disk, does some processing, compiles them into an RSS feed, and uploads it to a remote machine using scp. The script works fine…
Sean Mackesey
  • 10,701
  • 11
  • 40
  • 66
0
votes
1 answer

Inside shell script: write Python output to file works from terminal, "Input stream is empty" when running from launchd

I wrote a short shell script to write the contents of an Evernote note to a file with Geeknote, which runs under python: #!/bin/bash /usr/bin/python /Users/me/Git/geeknote/geeknote.py find --search "Hobbies To Do" > /dev/null /usr/bin/python -u…
nshaas
  • 114
  • 2
  • 11