How to run a nohup command present in a variable using ssh? <p>I am new to Linux. I stored a command in a variable say</p> <pre><code>a="nohup ./startWebLogic.sh &amp;". </code></pre> <p>I need to run this command on remote server along with few other commands. I have tried as follows...</p> <pre><code>ssh user@server &lt;&lt; EOF few shell commands then eval "$a" EOF </code></pre> <p>When I run the above script, it doesn't do anything after logging in the remote server, neither it throws me any error, nor it runs the nohup command..my intention is to start the WebLogic on the remote server using nohup...thanks!!</p>