If you need to run your ./app.sh script in the background and ensure it continues running after you close the terminal, without manually detaching from a session as required by screen or tmux , you can combine nohup with & and then immediately exit the terminal. This approach is suitable if you're running a command via SSH and want to close the session right after starting the command, or if you're scripting the execution and termination process. Here's how you can do it: sh Copy code nohup ./app.sh > app.log 2>&1 & Breaking down the command: nohup ensures that the command doesn't receive the hangup signal when the terminal is closed. ./app.sh is your script you want to run in the background. > app.log redirects standard output (stdout) to a file named app.log , so you won't lose your output after the terminal is closed. 2>&1 redirects standard error (stderr) to standard output (stdout), which means both output and errors go to...
400 Free Tools and Free Resources For Entrepreneurs and Startups FREE WEBSITE HTML5 UP: Responsive HTML5 and CSS3 site templates. Bootswatch: Free themes for Bootstrap. Templated: A collection of 845 free CSS & HTML5 site templates. WordPress.org | WordPress.com: Create your new website for free. Strikingly: Free, unlimited mobile optimized websites for strikingly domains. Layers: A WordPress site builder so simple. It’s free, forever. Bootstrap Zero: The largest open-source, free Bootstrap template collection. Landing Harbor: Promote your mobile app with a free landing page. FREE BRANDING & LOGO Logaster: Professional online logo maker & generator. Hipster Logo Generator: It’s Hip, It’s Current, It’s Stylish, It’s Hipster. Squarespace Free Logo: You can download free low-res version for free. Signature Maker: A free web based tool that creates your handwritten digital signature. FREE INVOICE Invoice to me: Free Invoice Generator. Free Inv...
Comments
Post a Comment