Questions tagged [exit]

23 questions
114
votes
7 answers

How do I close the Terminal in OSX from the command line?

Why doesn't "exit" close a Terminal.app window on Mac OS X? $ exit logout [Process completed] Is there a way to close the window without using the mouse?
user242065
58
votes
5 answers

How to exit MySQL command prompt?

I have installed MySQL. Now I am stuck inside the MySQL command prompt. I ran MySQL like this: C:\>mysql.exe mysql> Then I type in some invalid command like this: mysql> /version -> And no matter what I type, I can't exit MySQL command-line /…
Eric Leschinski
  • 7,393
  • 7
  • 51
  • 51
37
votes
3 answers

On Windows, how can I gracefully ask a running program to terminate?

On Unix or Linux, it's easy to gracefully ask a running application to terminate: you send it the SIGTERM signal. If its process ID is 1234, you can simply run kill 1234 or kill -s TERM 1234 or kill -15 1234. How can I do the same thing in…
26
votes
5 answers

How do I quit / exit / stop Xcode Server?

I have this little hammer up next to volume, power, time, etc. How do I make it go away? The options menu is grayed-out. No menu item to shut it down that I can find.
17
votes
2 answers

What is the difference between ~. (tilde dot) and "exit" when exitting an SSH connection

Whenever I have a backgrounded X11 connection in an SSH session, I must use ~. and not exit to exit the ssh session. What is the difference here? Can I always use the escape sequence ~. ?
14
votes
3 answers

What is a keyboard shortcut for closing a Windows PowerShell window?

I have opened an empty Windows PowerShell window, and have not yet entered any commands into the window. The default, unchanged directory is my user account folder. I want to close the window with a keyboard shortcut. Does NOT work: Ctrl-w (Adds…
6
votes
2 answers

Pipe grep exit code away

When I need to suppress some kind of output e.g. foo | grep -v bar But foo gives sometimes only: bar bar bar... grep will return -1. How do I transform the exit code 1 to 0?
math
  • 2,693
4
votes
2 answers

GIMP Close edited image without asking for confirmation

I was able to disable the confirmation dialog when closing an image. I successfully did so at a previous version of GIMP but apparently an update to GIMP 2.8.14 (on Arch Linux) disabled it and I can't find the setting anywhere. Please help me find…
qubodup
  • 9,394
4
votes
4 answers

Shell script: ssh to remote machine, then exit: 'exit' does not work

I have a shell script of the following type: #!/bin/bash ssh mylogin@myremotemachine.com echo "Hi" exit I run it locally to do something on a remote server (represented by 'echo "Hi"'). However, when I run it, I see the prompt on the remote server…
mathlete
  • 234
4
votes
2 answers

exit code 128, what's the reason?

As per definition exit code 128 means 'invalid exit argument'. But i always get 255 (Exit status out of range) in case argument is invalid like float number. Is this the proprietary implementation on my linux distribution? # exit 1.234 exit bash:…
P K
  • 2,233
3
votes
3 answers

Windows "Exit Explorer" option missing

I'm looking to gracefully exit/terminate Windows Explorer either from the UI or possibly from the command line. There are many articles out there which explain how to do this in various versions of Windows (XP, Vista, 7 & 8). There has been one…
3
votes
1 answer

How can I execute a shell script without exit? (Mac OS X)

I'm making a shortcut icon on my Dock which opens a terminal window with some preconfigured environment variables. I made a script and dragged it into my Dock. It runs well, however it exits immediately when it completed. I want to start console…
Eonil
  • 6,094
2
votes
2 answers

Does Tor need more Relay node or Exit nodes?

If I have free bandwidth, am I better off sharing as a relay node or exit node? Trying to help the Tor network
Shamoon
  • 277
1
vote
1 answer

How do I exit form "Failed validating schema (@jupyterlab/apputils-extension:package)" in Jupyter lab?

I am trying to access jupyter lab using ssh. I am fallen in this error message shown in the image that I attach: It is a similar problem reported in this StackOverflow post. My problem now is: how do I exit from this and obtain my command line…
1
vote
1 answer

bash trap in background functions

Calling a function in a script in background - using '&', the function is called in a subshell. When the function ends, the subshell ends, with an exit status. I would like to trap the exit signal of such subshell to automatically cancel log files.…
kaligne
  • 269
1
2