Re: [users@httpd] Date Format of Shell Program Changes in Apache

2016-07-05 Thread Rob McAninch
> On Jul 1, 2016, at 17:50, Yehuda Katz wrote: > > This is because of the locale settings. I changed the script to show the > locale (and to be plain text so the spaces are visible). > >> #!/usr/bin/perl >> use strict; >> print "content-type: text/plain\n\n"; >> print `who`; >> print `locale`

Re: [users@httpd] Date Format of Shell Program Changes in Apache

2016-07-01 Thread Yehuda Katz
This isn't a perl list, but I was playing around and found you can do this in perl: #!/usr/bin/perl > use strict; > BEGIN > { > $ENV{LC_TIME}= 'en_US.UTF-8'; > } > print "content-type: text/plain\n\n"; > print `who`; > print `locale`; Hopefully that helps, - Y On Fri, Jul 1, 2016 at 5

Re: [users@httpd] Date Format of Shell Program Changes in Apache

2016-07-01 Thread Yehuda Katz
This is because of the locale settings. I changed the script to show the locale (and to be plain text so the spaces are visible). #!/usr/bin/perl > use strict; > print "content-type: text/plain\n\n"; > print `who`; > print `locale`; Apache shows this: yehuda pts/2Jul 1 17:37 (pool-xx

[users@httpd] Date Format of Shell Program Changes in Apache

2016-07-01 Thread Rob McAninch
Server version: Apache/2.4.10 (Debian) This seems like it should be simple but manual pages and searching have not shown me an answer yet. Reduced it to as simple as I can, I don't understand why the date format is different in each. #!/usr/bin/perl use strict; print "content-type: text/html\n\n"