Command to quit an app from Terminal
When I force quit Final Cut Pro HD, the app still has a black triangle next to it in the dock.
When I bring up force quit again, the app is still listed.
What's the command to quit an app from Terminal?
You can use the killall command to quit a process by name. If this doesn't work, you can also save any open documents and then force quit the loginwindow process from the Activity Monitor.
(19696)
Similar Messages
-
Correct Command to Mount a NAS from Terminal?
My main HDD on my iMac seems to have died. I've tried booting in to target mode with a MacBook Pro but the drive doesn't show up and when I try running DiskWarrior on the MacBook Pro it can tell me the drive is there but it says it can't fix the problem.
I am able to book the Mac with the faulty drive to Recovery Mode (by holding down Opt) and from there I can launch a terminal and i've tried running fsck and it talks about an invalid Sibling Thread. I am able to navigate my HDD from the cmd line in terminal and my data is there, so I want to try and backup that data to my NAS.
I am hoping to do that using rsync but I can't seem to mount my NAS from the command line.
I was using: mount -t smbfs //username:[email protected] /Volumes/NAS
But I get the following error:
dyld: Library not loaded: /System/Library/PrivateFrameworks/SMBClient.framework/Versions/A/SMBClient
Referenced from: /sbin/mount_smbfs
Reason: image not found
mount: /Volume/NAS: Trace/BPT trap
Anyone know what this means or have a suggestion on how to backup my HDD? I looked in to FTP but you can't mput all the directory structure and I couldn't figure out a way to get ncftp over to the HDD of the iMac.
ThxI'm not sure your mount command is quite correct (but they can be finnicky depending on how the domain/AD is set up)...I think the general form should be along the lines of:
mount -t smbfs //'<domain name>;<user name>'@192.168.1.99.<path to share> <mountpoint>
Now, putting /Volumes/NAS in place of <mountpoint> is likely to fail, since the OS plug-n-play system owns /Volumes. Best to create a mountpoint in your home folder (say an empty folder named NAS) and use ~/NAS as the mountpoint. The share will end up on your Desktop anyway.
Obviusly you will need to replace the domain, user and share names. For passwords, I let the system prompt me...if you want to use ":password", I'm not sure if it goes inside or outside the single-quote after the username...easy enough to test I guess.
Cheers. -
Using Archive Utility.app from Terminal
Hi there!
Does anybody know if it is possible to send commands or options to Archive Utility.app via Terminal?
It is possible to invoke Archive Utility.app and pass it the path to a zip file, and it will uncompress it. However, I would like to also pass it a destination path, and see what other options it may have.
Thanks in advance!
davewgIt's because this will be done via a script and I want to show a progress bar to the users, then they can see something is happening - Archive Utility.app has a very nice little progress bar! :o)
-
Running a C++/OpenCV app from terminal (which was first created in Xcode)
Hi there,
First of all, I'm pretty newbie to Xcode, since I've always coded in Textmate. But now I have to use XCode for using OpenCV, because I created a opencv framework. If I build&run the code in XCode, it works great, but now I have to run it from Terminal and it gives me an error (i do "./" to the release build):
*dyld: Library not loaded: @executable_path/../Frameworks/OpenCV.framework/Versions/A/OpenCV*
*Referenced from: /Users/Victor/Documents/PFC/src/opencv/blob/build/Release/./test3*
*Reason: image not found*
*Trace/BPT trap*
If I try to compile the .cpp myself from Terminal, it says it doesn't find the opencv libraries.
So, how do I run this? I thought that XCode would provide me a build for running it anytime without XCode.Ok, false alarm. As I said, I'm pretty newbie: i was building on Debug mode so the Release build didn't wrk because of that. Now it works great
-
How do you update Server.app from Terminal?
The "softwareupdate" terminal command does not seem to include Server.app updates. Is there another way to install Server.app updates through the terminal so that running update can be done over SSH?
Good question. But alas, no. Remember Apple is a consumer company. App Store is consumer friendly, enterprise averse.
Depending on your licensing model, the best way to handle this is to have a master machine that has access to all your enterprise purchased app store apps. When there is an update, use this master machine to get the updates. Once you have them, use ARD, JAMF, or other tools to push these new Apps out to the fleet.
This method works well for simple bundle based apps with no additional payload. If you are supporting developers and need to push Xcode, recall that there are first run scripts and additional updates such as device simulation and command line tools that must be run post.
Hope this helps. Good luck. -
How to quit an app from dock that will not quit!
I wanted to turn off my computer, but it asked me to quit mail. So i try to quit mail and it will not quit. Then i tried dragging it into trash, and onto the dock to get deleted but that would not work either. It won't delete or quit anywhere. And when I click "file", quick mail is not even an option! Help please
Choose Force Quit from the Apple menu and shut it down from there. If that doesn't work, save and close everything you can and use the Activity Monitor in the /Applications/Utilities/ folder to force quit the loginwindow process.
(85790) -
[Solved] Launch GUI application and detach it from terminal
Hello, I find it convenient launching apps from terminal, but after that I am unable to use the terminal, since it it's "attached" to the process. Some searching revealed 2 methods of doing this, but they both don't work for me
1) add "&" after the command: upon closing the terminal the application closes as well; not what I want
2) press ctrl+z: this just closes the app
So how do I type a command to launch a GUI app and continue using the terminal?
I am using mate-terminal.
Last edited by axper (2013-02-11 19:14:08)kaszak696 wrote:https://bbs.archlinux.org/viewtopic.php?id=157405
Thanks a lot, this is exactly what I wanted (for Bash):
olive wrote:
You can disown them (man bash). I have put
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'disown -a -h'
in my ~/.bashrc with the effect that if you launch a program in the background (with &). It will not be stopped when you close the terminal.
For Zsh, put this in your .zshrc
precmd_disown() {
emulate -L zsh
setopt extendedglob
local job match mbegin mend
jobs | while read job; do
if [[ $job = \[(#b)([[:digit:]]##)\]*running* ]]; then
disown %$match[1]
fi
done
autoload -U add-zsh-hook
add-zsh-hook precmd precmd_disown
(from http://www.zsh.org/mla/users/2010/msg00654.html)
Last edited by axper (2013-06-29 07:47:21) -
Install .app from command line?
How do I install a .app from the command line?
Yes, I know that if the .app is a directory, I can just copy it. That seems to work fine for Google Chrome and Firefox. However, now I want to script the install of Adobe Flash Player. It's a directory, but just copying it won't work... something in the execution of the installer fires off another installer inside the .app to install the plugin. I can get a little creative, manually figure this out, do some copying and moving and deleting and use installer to install the plugin... but the next time I need to do this with a different package, or if Adobe changes the contants of Flash Player, I'll be back to square one. I'd like to know how to kick off this install with the same results as double-clicking it in Finder.friends: i have a similar problem. i want to try and install final cut pro HD 4.5 on my macbook air 11 inch. it is running great on my other macbook air 11 inch but when i bought another macbook air 11 inch (newer model) it came with OS X 10.7.2 which does not support powerpc as you know. but i have heard that sometimes it is just the installer that needs the powerpc so i am trying to install it via terminal. the problem is, i do not know how to configure my string properly. when i drop the .app into the terminal window i get this location:
/Users/mycomputername/Desktop/Final\ Cut\ Pro\ HD.app
and i was using variations of this:
sudo installer -package /Users/mycomputername/Desktop/Final\ Cut\ Pro\ HD.app -target /
try not to laugh, i am not a coder, just trying to get my computer to run this program that i love. the new FCP is too expensive and i don't even like it. thanks so much for your help! -
What funtionality comes from Terminal.app and not bash (or other shells)?
I am planning to write an alternative terminal program ( --mostly-- for aesthetics sake) and I want to make sure I cover all of the functionality that I want from Terminal.app in my program. What I'd like to know is what functionality is attributable to the Terminal.app program and not the shell it is using.
Message was edited by: Camden Jared NarztYou should find the ANSI Terminal Escape Sequence standard, which evolved out of the Digital Equipment Corporation VT100 line of terminals. Getting the escape sequences implemented correctly is the hard task.
Roughly speaking, the Terminal handles displaying the characters from the process(s) and sending keyboard characters (again based on ANSI standard) to the process(s)).
The Terminal also handles text selection, copy and paste.
The Terminal may also send mouse movement and click information (optional).
You could start with an existing terminal emulator, such as the open source project iTerm <http://iterm.sf.net>, or just contribute to the iTerm project.
There are also X11 based terminal emulators such as xterm, rxvt, etc... where the source code is available.
As with all open source code bases, if you start with that code, you are most likely obligated to make your source code available as well, unless you only use the resulting terminal emulator for your own use.
I do NOT know where the official ANSI standard can be found, but this is from the DTTERM Common Desktop Environment man page
<http://www.helsinki.fi/atk/unix/decmanuals/DOC_51/HTML/MAN/MAN5/0200___.HTM>
and will give you a flavor for the kind of stuff you will need to implement.
As for what bash implements, start by reading "man bash", then read man sh, man ksh, man tcsh, man zsh, and you will start to get a favor for what a shell does.
For the most part the terminal displays the text and sends keyboard input. The shell runs programs, and command line editing, command line recall, etc... A lot of the commands that are run by the shell are just separate programs of their own, so they are not part of the shell.
Message was edited by: BobHarris -
How to reset the network IP address from terminal/command line in Mac OSX?
Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?
how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.
-
How to compile an .air app from the ADT command line?
Hi,
I would like to compile an .air app from the ADT command line.
Does anybody have an example?
I don't know how to add the AIR SDK path and a folder to it.
Is there a generator for the command line availabble?
ThanksCorrection: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.
-
"Quit unexpectedly" for most of my apps from the Creative Cloud.
"Quit unexpectedly" I've been having this issue for most of my apps from the Creative Cloud everytime I hooked up my MacbookPro to a ViewSonic VG2436 Series monitor. Once I un-hooked my laptop all my Creative Cloud apps works fine. Why is it causing to quit unexpectedly when my laptop is hooked up to a monitor?
-
I'd like to know if it is possible to quit a program from the terminal. I know how to "Kill" the program, but would like it to exit gracefully.
Thanks in advance.
JohnI believe kill will attempt to exit gracefully, depending on the signal your send (1 is default I believe):
1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
6 ABRT (abort)
9 KILL (non-catchable, non-ignorable kill)
14 ALRM (alarm clock)
15 TERM (software termination signal) -
I think I am missing some stuff in the commands. I need it to show a list of all available to me and alias ....any suggestions?
<Edited by Host>rockymountainblues,
do you mean commands as in items in the Applications folder, or commands as in things that would be run from within Terminal? What sort of stuff do you think is missing from the commands?
By aliases, do you mean aliases within the shell that Terminal executes?
To check your system log history from Terminal, log in as an administrative user and go to /var/log. You should see several files with names that begin with system.log — the ones that end in .gz are inactive and compressed. The file named just system.log is the one that’s currently active. -
Excluding apps from "open with..." list?
Is there a way I can exclude apps from the "Open With…" menu?
Finder mistakenly lists all standalone Flash apps I've built as possible choices when opening a SWF.Yep, by clearing the Launch Services DB:
Rebuild LaunchServices Database
Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
find /System/Library/Frameworks -type f -name "lsregister" -exec {} -kill -seed -r \;
Press RETURN.
Wait for the Terminal prompt to return after which you can quit the Terminal.
Maybe you are looking for
-
ON OFFICEJET 6500A PLUS HOW TO GET IN PRINT IN ECONOMY MODE,+WHERE IS THE SHUT OF SWITCH
THOSE ARE MY QUESTIONS ABOVE
-
How to create a custom application in Fusion Apps release 4 ?
Hello Experts, My project has a requirement to define a custom application in Fusion Apps, the one that is equivalent to fnd_application from EBS. Any document or note explaining the creation of custom application in Fusion and its association with U
-
== Issue == I have another kind of problem with Firefox == Description == Well....NOW I have to click on the task bar in order to activate links in any new page I open, or to move from tab to tab, this is the stupidest thing, more annoying than using
-
SQL Server Reporting Services- Coloring a Cell Background Based on two different column group values
Hello All, I have a matrix report with time scale on the x axis and Resources on Y axis Showing the tasks assigned to each resource for a period of time. Here I have to color a matrix cell showing task details on tool tip with background color of th
-
Best way to set up two new iTouches for kids
I have a two new iTouches for my daughter (8) and son (5). My iPhone is set up with iTunes on my iMac computer. Both kids have an a user account on the iMac. What is the best way to set up the iTouch's for my kids? Do I use my Apple ID for their iTou