Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shutdown when done (ovvero auto-spegnere il PC dopo emerge)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
jesus_was_rasta
Apprentice
Apprentice


Joined: 26 Sep 2004
Posts: 173

PostPosted: Tue Oct 19, 2004 12:01 am    Post subject: Shutdown when done (ovvero auto-spegnere il PC dopo emerge) Reply with quote

Come da oggetto...
So che con qualche script e con l'aiuto di cron o simili si potrà fare.
Qualcuno l'ha già fatto e/o pensato?
Grazie!
Back to top
View user's profile Send private message
Geps
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 90
Location: Bologna

PostPosted: Tue Oct 19, 2004 12:22 am    Post subject: Reply with quote

Code:
emerge $qualcosa && shutdown -h now

se non ho capito male.
Back to top
View user's profile Send private message
N0ise
n00b
n00b


Joined: 10 Oct 2004
Posts: 29
Location: Pisa, Italy

PostPosted: Tue Oct 19, 2004 6:22 am    Post subject: Reply with quote

Io uso:
Code:
emerge qualcosa
ctrl+z
fg && halt

_________________
Nel 1968 la potenza di 2 Commodore-64 ha portato un razzo sulla luna , oggi, 2003 , la potenza di un Athlon 3200+ viene usata per far girare Windows XP.... Qualcosa deve essere andato storto...
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Oct 19, 2004 8:51 am    Post subject: Reply with quote

Se vuoi che la macchina si spenga a prescindere dall'esito di emerge

Code:
# emerge -u world ; halt

_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Tue Oct 19, 2004 8:58 am    Post subject: Reply with quote

MyZelF wrote:
Se vuoi che la macchina si spenga a prescindere dall'esito di emerge

Magari anche un bel
Code:
# emerge -u world ; echo $? > /root/esito.txt ; halt

cosi' se in esito hai 0 vuol dire che l'operazione e' andata a buon fine
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Oct 19, 2004 9:00 am    Post subject: Reply with quote

Certo, potrebbe essere utile anche redirigire tutto lo standard output ed error di emerge in un file, per poter controllare l'esito dell'escuzione.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
jesus_was_rasta
Apprentice
Apprentice


Joined: 26 Sep 2004
Posts: 173

PostPosted: Tue Oct 19, 2004 11:55 pm    Post subject: Reply with quote

Wonderful!
Grazie assai! :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Wed Oct 20, 2004 1:45 am    Post subject: Reply with quote

MyZelF wrote:
Certo, potrebbe essere utile anche redirigire tutto lo standard output ed error di emerge in un file, per poter controllare l'esito dell'escuzione.

Forse e' meglio cosi' se non va a buon fine si sa anche l'errore
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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