Questions tagged [exit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
78 views

The ezstream service quits unexpectedly

I have Icecast started at boot, running in the background, thus: # systemctl status icecast2 ● icecast2.service - LSB: Icecast2 streaming media server Loaded: loaded (/etc/init.d/icecast2; ...
user avatar
  • 111
0 votes
1 answer
265 views

How to call .bash_logout on CentOS

I'm trying to call my own .bash_logout on CentOS when a user logs out. However, even when an 'exit' command is sent, .bash_logout is NOT called/executed (it just logs out). On CentOS, when I type '...
user avatar
  • 103
0 votes
0 answers
58 views

What is the possible cause of a Windows batch command preventing all subsequent commands to execute?

I have a simple bat file that does the following: openapi-generator generate -i open-api-offline-file.json -g csharp-netcore -c open-api-config.json -o DataLakeOpenApiRestClient REM customizing ...
user avatar
  • 513
9 votes
3 answers
10k views

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 ...
user avatar
0 votes
1 answer
7k views

How to reliably remove all temporary files created in a script?

Is it possible to trap the exit/return of a function? For a program I could do trap -- "clean_this" EXIT That would execute the function clean_this when the program exits. I would like to do ...
user avatar
  • 259
1 vote
1 answer
731 views

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 ...
user avatar
  • 259
24 votes
5 answers
17k views

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.
user avatar
15 votes
2 answers
5k views

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 ~. ?
user avatar
30 votes
3 answers
57k views

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 ...
user avatar
0 votes
3 answers
3k views

cmd-Difference between quit and exit

If you type telnet in cmd, you will have to type quit to get out of there, but if you type wmic, both quit and exit will work. Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' ...
user avatar
  • 5,751
4 votes
2 answers
2k views

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 ...
user avatar
  • 7,185
4 votes
4 answers
66k views

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, ...
user avatar
2 votes
2 answers
370 views

Does Tor need more Relay node or Exit nodes? [closed]

If I have free bandwidth, am I better off sharing as a relay node or exit node? Trying to help the Tor network
user avatar
  • 267
51 votes
5 answers
282k views

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 -> ...
user avatar
0 votes
2 answers
2k views

When I grep no particular file the terminal stops working

I'm learning how to use the shell. In playing around with some basic commands I encountered an issue. This is pretty basic stuff and I apologize if that upsets some folk. On my desktop there exists a ...
user avatar
  • 155
0 votes
1 answer
233 views

Why would Firefox put anything in the clipboard on exit?

I have an Autohotkey script that gets triggered whenever image data (not text or other data types) is copied to the clipboard. When I close Firefox, the script gets triggered. This doesn't make any ...
user avatar
0 votes
1 answer
954 views

Vista 64x Window Mail won't close the WinMail.exe process when exiting

I've been running Windows Mail fine on my Windows Vista 64 computer for several years. A few days ago, for no apparent reason, it began failing to stop its WinMail.exe process whenever I'd exit the ...
user avatar
1 vote
3 answers
551 views

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 ...
user avatar
4 votes
2 answers
27k views

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 ...
user avatar
  • 2,173
3 votes
1 answer
7k views

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 ...
user avatar
  • 5,174
6 votes
2 answers
5k views

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?
user avatar
  • 2,513
95 votes
7 answers
144k views

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?
user avatar