View previous topic :: View next topic |
Author |
Message |
RadikalQ3 Apprentice
Joined: 26 Oct 2003 Posts: 172 Location: Planeta Tierra
|
Posted: Wed Oct 13, 2004 6:09 pm Post subject: [portage] Como saber si está ejecutándose (cerrado) |
|
|
Pues eso, que necesito saber desde un script bash cuando hay un 'emerge' en marcha, para esperar y luego borrar unos directorios... ¿cómo puedo hacerlo? _________________ Radikal Trucomania
Last edited by RadikalQ3 on Wed Oct 13, 2004 8:36 pm; edited 1 time in total |
|
Back to top |
|
|
Javier Lopez Guru
Joined: 13 Sep 2002 Posts: 377 Location: Barcelona
|
Posted: Wed Oct 13, 2004 6:50 pm Post subject: |
|
|
Yo lo hago así
Code: |
ps -a | grep emerge > /dev/null
if [ $? -eq 1 ]; then
echo "NO se está ejecutando"
fi
|
|
|
Back to top |
|
|
RadikalQ3 Apprentice
Joined: 26 Oct 2003 Posts: 172 Location: Planeta Tierra
|
Posted: Wed Oct 13, 2004 8:35 pm Post subject: |
|
|
Gracias _________________ Radikal Trucomania |
|
Back to top |
|
|
|