<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
On 24/04/2019 21:54, ToddAndMargo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:89c71ad1-e7f3-7f74-9cbe-0d49633264ba@zoho.com">On
4/23/19 3:48 PM, ToddAndMargo wrote:
<br>
<blockquote type="cite">Do (session and) start up programs run
inside or
<br>
outside the "Shell" (bash)?
<br>
<br>
I other words, if I want something to run inside the shell, do I
<br>
need `bash -c "xxx"`
<br>
</blockquote>
<br>
Figured it out. It is outside the shell, so I
<br>
needed to add
<br>
<br>
bash -d "xxx"
<br>
<br>
bash -c "if [ ! $(pgrep osmo) ]; then /usr/bin/osmo; fi"
<br>
</blockquote>
<br>
My advise is: <br>
<br>
put all your commands into a shell script and call it. You will have
many benefits:<br>
<br>
<ul>
<li>git control source available<br>
</li>
<li>editor and clear syntax reading</li>
<li>you know the running environment</li>
<li>you can document inside your code, for later when you come
back</li>
<li>many more...</li>
</ul>
<p>Regards,</p>
<p>Sylvain.<br>
</p>
<br>
<br>
<pre class="moz-signature" cols="72">--
Sylvain Viart - GNU/Linux Sysadmin/Developper/DevOps - France</pre>
</body>
</html>