Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[portage] Como saber si está ejecutándose (cerrado)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
RadikalQ3
Apprentice
Apprentice


Joined: 26 Oct 2003
Posts: 172
Location: Planeta Tierra

PostPosted: Wed Oct 13, 2004 6:09 pm    Post subject: [portage] Como saber si está ejecutándose (cerrado) Reply with quote

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
View user's profile Send private message
Javier Lopez
Guru
Guru


Joined: 13 Sep 2002
Posts: 377
Location: Barcelona

PostPosted: Wed Oct 13, 2004 6:50 pm    Post subject: Reply with quote

Yo lo hago así

Code:

ps -a | grep emerge > /dev/null
if [ $? -eq 1 ]; then
   echo "NO se está ejecutando"
fi
Back to top
View user's profile Send private message
RadikalQ3
Apprentice
Apprentice


Joined: 26 Oct 2003
Posts: 172
Location: Planeta Tierra

PostPosted: Wed Oct 13, 2004 8:35 pm    Post subject: Reply with quote

Gracias :)
_________________
Radikal Trucomania
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum