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.

_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to