Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Use launchctl in interactive mode UNIX
Tiger only hintI don't know if this is common knowledge or not; I just accidentally discovered it. If you run launchctl without any options, you enter into a client mode similar to ftp, nslookup, etc.

You can then use all the normal commands (load, unload, start, stop, etc.) interactively. There's no "quit" or "exit" command, though, so you need to hit Control-C to exit.

[robg adds: You'll want to run this with sudo to see system-owned tasks; the list command will most likely be empty for your user, unless you've done some tweaking of your own.]
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[13,106 views]  

10.4: Use launchctl in interactive mode | 2 comments | Create New Account
Click here to return to the '10.4: Use launchctl in interactive mode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use launchctl in interactive mode
Authored by: nate-dog on Jul 28, '05 10:19:49AM

The polite way to exit the shell is Control-D (EOF) rather than Control-C (Interrupt).



[ Reply to This | # ]
10.4: Use launchctl in interactive mode
Authored by: Quixand on May 06, '09 05:04:22PM

Once you are in launchctl type 'help' and you will get a list of the available interactive commnds.

typing 'exit' will do what you expect.



[ Reply to This | # ]