Discussion:
Trick to getting /usr/bin/logname to return a value?
John
2015-01-06 22:09:11 UTC
Permalink
Under tmux 1.9_a, if I run /usr/bin/logname, I do not get my username returned, just "logname: no login name." Is there a setting I need to enable in ~/.tmux.conf or the like? Thanks!
Thomas Adam
2015-01-06 22:21:17 UTC
Permalink
This post might be inappropriate. Click to display it.
John
2015-01-06 22:40:47 UTC
Permalink
----- Original Message -----
Post by Thomas Adam
Which OS? If you're on Linux, install libutempter, this will then allow
the utmp database to be queried, and commands like w, who, and logname
should work.
Thank you for the suggestion. Yes, it is Linux. I have the libutempter package installed, but upon spawning a new tmux session, logname still errors out. Is there a corresponding config option I need to tweak or?
Thomas Adam
2015-01-06 22:44:56 UTC
Permalink
This post might be inappropriate. Click to display it.
John
2015-01-07 13:42:45 UTC
Permalink
Post by Thomas Adam
Post by John
Thank you for the suggestion. Yes, it is Linux. I have the
libutempter package installed, but upon spawning a new tmux session,
That's not enough. You need to install the -dev package, and compile
tmux to use it (it'll check for the utempter header file automatically).
I built it from git with utempter installed and it works as expected. Thank you. Is it possible to pull out a specific patch from git that I can apply to the stable 1.9_a codebase to get this functionality?
Thomas Adam
2015-01-07 13:47:32 UTC
Permalink
Post by John
Post by Thomas Adam
Post by John
Thank you for the suggestion. Yes, it is Linux. I have the
libutempter package installed, but upon spawning a new tmux session,
That's not enough. You need to install the -dev package, and compile
tmux to use it (it'll check for the utempter header file automatically).
I built it from git with utempter installed and it works as expected.
Thank you. Is it possible to pull out a specific patch from git that I
can apply to the stable 1.9_a codebase to get this functionality?
Why? If you can already use the Git version, just use that. That's easier
than patching 1.9a.

-- Thomas Adam

Loading...