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,
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.
This User Gave Thanks to johnprogrammer For This Post:
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
alltray
ALLTRAY(1) AllTray Manual Page ALLTRAY(1)NAME
AllTray - Dock any program into the system tray.
SYNOPSIS
alltray [program] [options]
DESCRIPTION
With AllTray you can dock any application with no native tray icon (like Evolution, Thunderbird, Terminals) into the system tray. A
high-light feature is that a click on the "close" button will minimize back to system tray. It works well with Gnome, KDE, XFCE 4*,
Fluxbox* and WindowMaker*. Xmms is supported in particular.
Click-Mode: Only run alltray and click on the window you would like to dock. (Abort with <c>)
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-h --help
Show summary of options.
-v --version
Show version of program.
-d --debug
Show debug messages.
-s --show
Do not hide window after start.
-i --icon
Use a PNG image as an icon.
-l --large_icons
allow large icons (> 24x24).
-st --sticky
visible on all workspaces.
-stask --skip-taskbar
not visible in taskbar.
-x --borderless
remove border, title, frame (if not supported native).
-m --menu
Add entry "menu text:command" to popdown menu.
-t --title
Show title change for <sec> seconds. Probably most useful for xmms.
-g --geometry
initial position. see man X.
-k --key [Modifier:]Key
create a keyboard shortcut.
Modifier -> "Shift", "Control", "Alt", "AltGr"
Key -> "a", "F1", "End" ...
or "Keycode" (Number) returned by the program "xev"
-nt --notray
display no tray icon (useful only with the "--key" option).
-nm --nominimize
click on window close button: do not minimize back to system tray, close.
-conf --configure
show KDE configuration dialog.
HOMEPAGE
http://alltray.trausch.us
AUTHOR
This manual page was written by Carlos C Soto <csoto@sia-solutions.com> for the GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
AllTray (C) 2005, Jochen Baier <email@jochen-baier.de>
Version 0.71 2010-02-07 ALLTRAY(1)