What happened to the consoles?
Tom H
tomh0665 at gmail.com
Fri Mar 24 10:50:19 UTC 2017
On Fri, Mar 24, 2017 at 5:02 AM, Ralf Mardorf <silver.bullet at zoho.com> wrote:
> On Fri, 24 Mar 2017 03:26:02 -0400, Tom H wrote:
>>
>> So systemd-logind isn't running, unless "psg" isn't doing the right
>> thing.
>
> It's not good to use aliases on mailing lists, even wide spread aliases
> such as "ll" aren't really "common" aliases.
>
> I suspect the OP does use
>
> # psg() { if [ -z "$2" ]; then psargs="aux"; greparg="$1"; else psargs="$1"; greparg="$2"; fi; ps $psargs | grep -i "$(echo $greparg | sed -e 's/^\(.\)/[\1]/')\|^$(ps $psargs | head -1)" ; }
> # psg systemd-logind
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 405 0.0 0.0 44984 4964 ? Ss Mar22 0:00 /usr/lib/systemd/systemd-logind
>
> This is at least what I found by a quick Internet research:
>
> http://www.commandlinefu.com/commands/view/977/psg-ps-grep-function-if-you-dont-have-pgrep-or-dont-know-how-to-use-it
Thanks. I'd assumed that "psg" was a home-brewed function.
More information about the ubuntu-users
mailing list