Posts

Showing posts with the label terminal

Operation not permitted when executing 'killall' with Swift

Image
Operation not permitted when executing 'killall' with Swift I'm trying to create a menu bar app to hide desktop icons and hopefully various other things mostly to learn more about Swift, and for some reason I can't get it to work. When I run this program and click on one of the menu items, nothing happens and I get this warning in the console: killall: warning: kill -TERM 15175: Operation not permitted Other commands work, but any variant I try on "killall" spits out something like the above. Currently my code looks like this: @discardableResult func killStuff(_ args: String...) -> Int32 { let task = Process() let pipe = Pipe() task.launchPath = "/usr/bin/killall" task.arguments = args task.standardOutput = pipe task.standardError = pipe task.launch() task.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() if let output = String(data: data, encoding: .utf8) { print(output) ...

Whats the difference between virsh destroy and virsh undefine

Whats the difference between virsh destroy and virsh undefine I am new to servers and vms wanted to know the difference between virsh destroy and virsh undefine why did you tag python to this? have you checked the manual pages for the comand? I found this on the net: docs.oracle.com/cd/E19053-01/ldoms.mgr10/820-3838-10/… – dopstar Jun 29 at 9:36 Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. – jww Jun 29 at 10:19 2...

MacOS Terminal is not showing any $PATH

MacOS Terminal is not showing any $PATH no bash command was working in my terminal, so I tried to reset my $PATH and somehow screwed it up more. Any help! -bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/': not a valid identifier Roopalis-MacBook-Air:~ roopa$ Roopalis-MacBook-Air:~ roopa$ echo $PATH Roopalis-MacBook-Air:~ roopa$ Roopalis-MacBook-Air:~ roopa$ Try this: export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/ – KeyMaker00 Jun 29 at 9:42 Thanks! it worked. – roopa saxena Jun 29 at 10:13 Unfortunately, the problem continues to exists. I closed the terminal and reopened it and got the same problem. :( –...