[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: su command...
From: |
Olivier Delhomme |
Subject: |
Re: su command... |
Date: |
Wed, 25 Mar 2009 21:57:26 +0100 |
Le Wed, 25 Mar 2009 18:51:41 +0100, Adilson Bonanovisky disait :
> Hi Kids!
Hello,
> 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" ]]; then su - gimp;
else su -; export DISPLAY=:0.0; gimp &; logout; fi;
In the hope that this may help.
Cheers,
--
Olivier Delhomme : http://blog.delhomme.org/ [fr]
"Quand la vérité n'est pas libre, la liberté n'est pas vraie."
[Jacques Prévert]
signature.asc
Description: PGP signature
- su command..., Adilson Bonanovisky, 2009/03/25
- Re: su command...,
Olivier Delhomme <=