Sponsored Content
Top Forums Shell Programming and Scripting Terminal running bash/rsync script does not close with exit (MacOS High SIerra) Post 303032007 by johnprogrammer on Saturday 9th of March 2019 06:25:59 AM
Old 03-09-2019
Quote:
The script seems to work, but when I key enter, instead of the terminal window closing like it does in windows under cygwin, I get the following message,
Code:
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

The terminal does not seem to function anymore but it does not close and I have to manually close it. It's not the end of the world but I don't understand why it doesn't close down on the exit command. Can anyone explain how to fix this?

It is a macOS thing. You must right click on the Terminal icon on the Dock, and select Quit.

See the screenshot attached.
Terminal running bash/rsync script does not close with exit (MacOS High SIerra)-png
This User Gave Thanks to johnprogrammer For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script does not close terminal after running

For a small script i want it so that the terminal closes when the script has completed its tasks. To do so i use at the end if the script the following: echo "Hello, World!" echo "Knowledge is power." echo "" echo "shutting down terminal in 10 seconds" exit 10 however the terminal stay's... (3 Replies)
Discussion started by: Ditzyken
3 Replies

2. UNIX for Dummies Questions & Answers

SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting

Well. I was recently given access to my work's machine via SSH. I'm pretty sure it's a SUSE machine, uname -a gives Linux machinename 2.6.16.60-0.54.5-bigsmp #1 SMP Fri Sep 4 01:28:03 UTC 2009 i686 i686 i386 GNU/Linux I'm not doing anything all that exciting, mostly data entry stuff. We... (14 Replies)
Discussion started by: pagrus
14 Replies

3. UNIX for Advanced & Expert Users

close a mac terminal

Is there a trick to closing a mac terminal with a command? I would think you could just type exit into your terminal but that doesn't work. I also tried quit and close just for the hell of it and that didn't work either. Does anyone know what the command is? (1 Reply)
Discussion started by: cokedude
1 Replies

4. Shell Programming and Scripting

[Solved] Rsh does not close connection on exit

Dear all, We have a service that we start up remotely with rsh but unfortunately, the rsh never returns to the calling server. This seems to be because the processes of the service we've just started hold the port open.RBATTE1 @ /home/RBATTE1>netstat -na|grep 49.51 tcp4 0 0 ... (1 Reply)
Discussion started by: rbatte1
1 Replies

5. Shell Programming and Scripting

Bash Question: HowTo Exit Script with User Input While Process is Running Mid-Loop?

Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Discussion started by: hilltop_yodeler
9 Replies

6. Shell Programming and Scripting

[BASH] Script to manage background scripts (running, finished, exit code)

Heyas, Since this question (similar) occur every now and then, and given the fact i was thinking about it just recently (1-2 weeks) anyway, i started to write something :p The last point for motivation was... (17 Replies)
Discussion started by: sea
17 Replies

7. UNIX for Beginners Questions & Answers

Capture power button press on MacOs High Sierra?

Hello everyone! I'm developing a MacOs Application in python and I'm having some issues trying to find information related to the power button pressed event. I know that in Ubuntu 14.04 you can find information about it on the acpi folders, but I realized that here in Mac that process is... (0 Replies)
Discussion started by: xedge
0 Replies

8. OS X (Apple)

If you run macOS High Sierra version 10.13.1, be sure to install today's update.

Some hackers found a security hole in macOS High Sierra and tweeted it to the world before telling Apple about the problem. You can see the details from PC Magazine's daily news here: Apple Releases Fix for MacOS High Sierra 'Root' Bug. The original story this morning was published before a patch... (6 Replies)
Discussion started by: Don Cragun
6 Replies

9. Shell Programming and Scripting

Issue with pwd for script run by double click on script (MacOS High SIerra)

Hello, I have the following script that just archives and clears some log files. #!/bin/bash # script: archive_logs_and_clear # add date to logfile names and copy archive directory # clear logs # change to script directory cd ... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

10. Shell Programming and Scripting

Issue with shutdown command in script (MacOS High Sierra)

Hello, I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Discussion started by: LMHmedchem
10 Replies
bbrun(1)							      bbtools								  bbrun(1)

NAME
bbrun - An elegant tool for the Blackbox window manager that runs commands SYNTAX
bbrun [OPTIONS] [-- [-display <display>]]... DESCRIPTION
bbrun is a small but very useful application. It makes it convenient to quickly execute commands from the blackbox or fluxbox window man- agers. bbrun is very similar to KDE's Alt+F2 Run Command dialog box. When launched, it occupies a small portion of the desktop and docks itself to the right side of the screen. The run dialog is opened by clicking on the tiny bbrun window. You don't necessarily need blackbox for this program to work. It looks just as good in fluxbox, but it won't look the same in other window managers. FILES
~/.bbrun_history OPTIONS
-a, --advanced - advanced mode, shows more options than the normal command entry box. The default is for it to be in normal (tradi- tional/simple) mode. -h, --help - this help screen -i, --history-file=<history file> - set the history file to use. (default: ~/.bbrun_history) -v, --version - print the version number -w, --withdraw - withdrawn mode, will go straight to command entry box Options that must occur after '--' if they are used: -display <display> - set the display that the gearbox should show up on GENERAL USAGE INFO
bbrun can be run in normal mode where it creates an icon that sits in the slit. You can then click on the gear icon to make the text entry window popup. You can also run bbrun in withdrawn mode by specifying the -w flag. This is ideal for use with the key shortcut program bbkeys since it will jump straight to the text entry screen. bbrun also supports the 'escape' and 'enter' keys for those of you who like to use the mouse as little as possbile. bbrun keeps a history of your most recent commands. The history list is stored in the '.bbrun_history' file in your home directory. If the file does not exist it is created automatically. Also keep in mind that you need quotes when you specify arguments with spaces in them. eg. mpg123 '/mp3/Creed - Higher.mp3' This file was updated by Kevin Coyner <kcoyner@debian.org> on February 12, 2007. Josh King <;jking@dwave.net> 1.6 bbrun(1)
All times are GMT -4. The time now is 11:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy