<div dir="ltr">echo $SHELL generally tells you which shell you are using.<br></div><div class="gmail_extra"><br clear="all"><div>Mauro<br><a href="http://mauro.limeiratem.com">http://mauro.limeiratem.com</a> - registered Linux User: 294521<br>
Scripture is both history, and a love letter from God.</div>
<br><br><div class="gmail_quote">2014-08-12 9:16 GMT-03:00 Giles Orr <span dir="ltr"><<a href="mailto:gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="">On 12 August 2014 02:41, William Park <span dir="ltr"><<a href="mailto:opengeometry-FFYn/CNdgSA@public.gmane.org" target="_blank">opengeometry-FFYn/CNdgSA@public.gmane.org</a>></span> wrote:<br></div><div class="gmail_extra">
<div class="">
> On Mon, Aug 11, 2014 at 09:17:28PM -0400, Giles Orr wrote:<br>
> > I'm using openbox on an Acer Chromebook (full install, not crouton). I'm<br>> > pretty pleased with the hardware, but I've got a problem with Openbox's<br>> > autostart file. It's a shell script, so I should be able to make decisions<br>
> > about what to run based on the hostname. This matters because I share<br>> > configuration files and dotfiles across multiple hosts. But it doesn't<br>> > work. I've tried:<br>> ><br>
> > if [ "$(hostname)" == "crom" ] # works at the command line<br>> > then<br>> > xterm -fn terminus-18 &<br>> > fi<br>> ><br>> > if [ "${HOSTNAME}" == "crom" ] # ditto<br>
> > ...<br>> ><br>> > if [ "$(cat /etc/hostname)" == "crom" ] # ditto<br>> > ...<br>> ><br>> > None work in ~/.config/openbox/autostart . I dumped $(env) to a file from<br>
> > within the autostart and HOSTNAME isn't set, so that explains the middle<br>> > one failing, but I have no explanation for why the others don't work. Can<br>> > anyone help?<br>><br>> Try single '=', or use Bash/Ksh which support '=='.<br>
<br></div>Thanks Walter - I do have the file.<br><br>William - that's a very good
point: I was automatically assuming Bash because it's what I use all the
time, and that may well NOT be what's used by Openbox. It obviously uses a shell of some sort, but which one is open to question. I will confirm
later. Thanks!<div class=""><br clear="all"><br>-- <br>Giles<br><a href="http://www.gilesorr.com/" target="_blank">http://www.gilesorr.com/</a><br><a href="mailto:gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">gilesorr@gmail.com</a>
</div></div></div>
</blockquote></div><br></div>