View previous topic :: View next topic |
Author |
Message |
jesus_was_rasta Apprentice
Joined: 26 Sep 2004 Posts: 173
|
Posted: Tue Oct 19, 2004 12:01 am Post subject: Shutdown when done (ovvero auto-spegnere il PC dopo emerge) |
|
|
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 |
|
|
Geps Tux's lil' helper
Joined: 01 Mar 2004 Posts: 90 Location: Bologna
|
Posted: Tue Oct 19, 2004 12:22 am Post subject: |
|
|
Code: | emerge $qualcosa && shutdown -h now |
se non ho capito male. |
|
Back to top |
|
|
N0ise n00b
Joined: 10 Oct 2004 Posts: 29 Location: Pisa, Italy
|
Posted: Tue Oct 19, 2004 6:22 am Post subject: |
|
|
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 |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Tue Oct 19, 2004 8:51 am Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30965 Location: here
|
Posted: Tue Oct 19, 2004 8:58 am Post subject: |
|
|
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 |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Tue Oct 19, 2004 9:00 am Post subject: |
|
|
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 |
|
|
jesus_was_rasta Apprentice
Joined: 26 Sep 2004 Posts: 173
|
Posted: Tue Oct 19, 2004 11:55 pm Post subject: |
|
|
Wonderful!
Grazie assai! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30965 Location: here
|
Posted: Wed Oct 20, 2004 1:45 am Post subject: |
|
|
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 |
|
|
|