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
<2016>
2017
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
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|