I made a very simple (but useful for me) bash script. All it does is just opening some applications that I was opening manually. Here is the code:
#!/bin/bash netbeans & mysql-workbench & opera & chromium-browser &
Now when I close the terminal the applications opened by the script keep running. Which is normal, that is what the "&" is there for.
My question is: Is there a way to still run those applications automatically but also close them automatically? If they were still attached to the terminal they would close, but when I remove the ampersand it only runs the first application.