EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Unreachable code in makeBaseApp.pl?
From: Stephen Molloy <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 8 Jul 2016 13:40:19 +0000
>> $user= $opt_u|| $ENV{USER}|| $ENV{USERNAME}|| Win32::LoginName(); > > I agree that doesn't look terribly robust, but for a Linux environment > to not define $USER seems rather unusual. Does this one-liner output the > username correctly? > perl -e 'printf "%s\n", getlogin();’
That also results in a blank.

> I'm wondering why you're using makeBaseApp.pl from inside a docker
> container, and why it isn't setting $USER, but that's more from curiosity...

I was playing with different ways of using Docker to containerise an EPICS installation, and in one of my experiments I tried using makeBaseApp.pl and discovered this.
To be honest, I don’t think that this would be the best way of using Docker for this task, but I thought that it was worth reporting something that looked like a bit of a weakness in makeBaseApp.
I’d be happy to make a suggested fix and submit a pull request via Git if that’s ok with you?
Steve


Replies:
Re: Unreachable code in makeBaseApp.pl? Ralph Lange
Re: Unreachable code in makeBaseApp.pl? Andrew Johnson

Navigate by Date:
Prev: Re: Unreachable code in makeBaseApp.pl? Andrew Johnson
Next: Re: Unreachable code in makeBaseApp.pl? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Unreachable code in makeBaseApp.pl? Andrew Johnson
Next: Re: Unreachable code in makeBaseApp.pl? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·