Kevin Deldycke - echohttps://kevin.deldycke.com/Professional Yak ShaverSun, 28 Feb 2010 12:39:32 +0100System & Shell Commandshttps://kevin.deldycke.com/2010/02/system-and-shell-commands/<ul> <li> <p>Run a process detached to the current&nbsp;terminal:</p> <div class="highlight"><pre><span></span>$ nohup my_command <span class="p">&amp;</span> </pre></div> </li> <li> <p>Run a process with a shell for a system user which has none (i.e. its default shell is set to <code>/bin/false</code> in <code>/etc/passwd</code>):</p> <div class="highlight"><pre><span></span>$ su sys_user -s /bin/bash -c <span class="s2">&quot;my_command&quot;</span> </pre></div> </li> <li> <p>Get the exit code of the latest …</p></li></ul>Kevin DeldyckeSun, 28 Feb 2010 12:39:32 +0100tag:kevin.deldycke.com,2010-02-28:/2010/02/system-and-shell-commands/CLIechokernelLinuxnohupshellsystemcronRegular expression