Score:0

launchctl: command not found on ubuntu 20.04 LTS

us flag

I am trying to run some scripts which internally calls launchctl commands. But this fails with error: launchctl: command not found

This is a fresh install of ubuntu 20.04 LTS version.

I do not know much about internals of launchctl but this seems to be preinstalled in most of the versions. For example I can see output when I do launchctl list on my mac but on ubuntu it fails with error:

launchctl: command not found.

Can anyone please help if there are any changes in this version.

Emoji avatar
ng flag
`launchctl` is a macOS command, not for Linux. The script is probably only for macOS users.
guiverc avatar
cn flag
I've never come across `launchctl` in a GNU/Linux or Unix system (inc. BSD). Online command guides tell me it's related to the [`launchd` process using in OSX version of unix](https://en.wikipedia.org/wiki/Launchd). Yes there are changes in 20.04, but I've not used that commands in the last decade+ on Ubuntu or other GNU/Linux systems. It's not a GNU/Linux command
undefined avatar
us flag
you saved my day. Thank you very much. I think that script might be only for mac. I will check from that point as well.
Emoji avatar
ng flag
@undefined Then let me close this question, if possible, to save other people's time.
undefined avatar
us flag
ok thanks @Emoji
Zanna avatar
kr flag
@Emoji or undefined - I suggest simply answering the question with the information here in comments. The question isn't off-topic. Perhaps someone will answer with some handy Ubuntu equivalent to the command mentioned :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.