> On Tue, 20 Mar 2012, Ricardo Catalinas Jim?nez wrote:
>
>> I found out the next issue in this simple code:
>>
>> let () =
>>     print_endline "Hello";
>>     print_endline (Unix.getlogin ())
>>
>> Running in the normal case, with `./a.out' gives:
>
> FWIW on my machine (linux) calling getlogin from any PTY always fails
> (be it screen or some sort of X terminal)

I guess /var/run/utmp is not world-readable - which is a perfectly
reasonable configuration, and means that you disabled getlogin
administratively.

Does "last -f /var/run/utmp" give an output?

Gerd

> [..snip..]
>
> --
> mailto:av1...@comtv.ru
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>


-- 
Gerd Stolpmann, Darmstadt, Germany    g...@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to