bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: su command...


From: Mike Frysinger
Subject: Re: su command...
Date: Wed, 25 Mar 2009 19:20:37 -0400
User-agent: KMail/1.11.1 (Linux/2.6.28; KDE/4.2.1; x86_64; ; )

On Wednesday 25 March 2009 16:57:26 Olivier Delhomme wrote:
> Le Wed, 25 Mar 2009 18:51:41 +0100, Adilson Bonanovisky disait :
> > Please, how can I execute the following idea: $ su gimp &
> > but really in bacground?
>
> I can not figure out what you want to do, but you might try
> this :
>
> if [[ $(grep gimp /etc/passwd | cut -d':' -f1) == "gimp" ]]

if running on a glibc system, getent may be a cleaner solution.
if getent passwd gimp >/dev/null ; then ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]