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: Andrew Johnson <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 8 Jul 2016 17:52:24 +0000

On 08/07/16 18:11, "Andrew Johnson" <[email protected]> wrote:
>
>Does making this change result in you being prompted for a user-name?
>
>> === modified file 'src/makeBaseApp/makeBaseApp.pl'
>> --- src/makeBaseApp/makeBaseApp.pl      2016-05-22 03:43:09 +0000
>> +++ src/makeBaseApp/makeBaseApp.pl      2016-07-08 15:44:43 +0000
>> @@ -418,7 +418,8 @@
>>  }
>>  
>>  sub GetUser {
>> -    $user = $opt_u || $ENV{USER} || $ENV{USERNAME} ||
>>Win32::LoginName();
>> +    $user = $opt_u || $ENV{USER} || $ENV{USERNAME} || getlogin();
>> +    $user = Win32::LoginName() if !$user && $^ eq 'MSWin32';
>>  
>>      unless ($user) {
>>         print "Strange, I cannot figure out your user name!\n²;


Yes, in that case the script asks me for my name.  I only tested it on my
Docker container, so it might need someone with a Windows install to make
sure it behaves in the right way.

Glad I was able to help in some small way :)

Steve



References:
Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
Re: Unreachable code in makeBaseApp.pl? Andrew Johnson

Navigate by Date:
Prev: Re: Unreachable code in makeBaseApp.pl? Andrew Johnson
Next: Write to waveform record using PVUtil.writePV Abdalla Ahmad
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: Write to waveform record using PVUtil.writePV Abdalla Ahmad
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 ·