Hi Stephen,
On 07/07/2016 09:45 AM, Stephen Molloy wrote:
> While building Docker containers, I had an error that turned out to be
> due to the lack of a $USER environment variable. When makeBaseApp.pl is
> called, it tries to figure out the username in the GetUser subroutine,
> using the following command:
>
> $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();'
> Of course, it’s very possible that this issue is caused by something
> that I am doing wrong….
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...
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
- References:
- Unreachable code in makeBaseApp.pl? Stephen Molloy
- Navigate by Date:
- Prev:
Unreachable code in makeBaseApp.pl? Stephen Molloy
- Next:
Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Unreachable code in makeBaseApp.pl? Stephen Molloy
- Next:
Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|