Le 3 juin 08 à 12:11, Patrick Proniewski a écrit :
> On 3 juin 08, at 11:55, Piel Jayce wrote:
>
>>> PID1=`/bin/ps x | /usr/bin/grep -v grep | /usr/bin/grep '/Users/me/
>>> Desktop/myFolder.com/My Server.app/Contents/MacOS/My Server' | /usr/
>>> bin/cut -c1-5`
>>
>> je rajouterai deux ou trois w aux options de ps pour s'assurer que le
>> chemin complet s'affiche.
>
> tant qu'à y aller :
>
> /bin/ps axco "pid,command"
>
> patpro
Ca le fait bien !
Mais je retiens l'astuce de Jayce car dans mon cas j'utilise le chemin
complet comme discriminant car j'ai plusieurs instances de la même
application lancée depuis différents dossiers.
Merci pour ton aide.
Cordialement
Maurice Inzirillo
--
4D NET Center S.A.
4DBK 3.1 <
http://www.4dbk.com/>
Téléphone : +41 (0)32 342 27 32
email : maurice.inzirillo@???
iChat : maurice_inzirillo@???
Skype : maurice.inzirillo
_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr