There is a need to run the program (Feed The Beast Launcher) with a preliminary choice, so to speak, of the launch mode. I am writing a sh-скрипт this kind:
#!/bin/bash IFS=$'\n' FTBDir="Путь" MMWPDir="Путь" JarLaunchDir="$HOME/Programs" NameLaunch="FTB_Launcher.jar" echo "Режим запуска:" echo "1.Обычный" echo "2.Сброс клиента" cd $JarLaunchDir read test java -jar ./$NameLaunch& I would like the terminal to close after launching the program. But the log of the operation of the launcher itself starts to appear in the terminal, respectively, everything after the launch line is not executed, therefore it is not possible to close the terminal.
I suppose that you need to somehow run in a separate thread, but I don’t understand how to do it.
screen; Orsupervisor; Or write an init script. - nobodyпрограмма параметры & exit- aleksandr barakin/usr/share/applications/firefox.desktop? - sercxjo