Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[INSTALL] da remoto (risolto)
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
4440
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 106

PostPosted: Mon Jul 12, 2004 9:20 am    Post subject: [INSTALL] da remoto (risolto) Reply with quote

installato partendo dallo stage3 su un pc che fungerà da server lamia gentoo

ora io ho fatto che si che il demone sshd parta all'avvio.. posso accedervi da remoto!

Entro ocn la shell da remoto e lancio un bel emerge qualcheccosa e parte una luuunga compilazione

ora come posso "chiudere la console remota" ?
Se riesco a chiuderla e a continuare a compilare (tengo acceso così un pc solo) dove trovo memorizzato eventuali errori riscontrati durante emerge?

grassie


Last edited by 4440 on Mon Jul 12, 2004 11:48 am; edited 1 time in total
Back to top
View user's profile Send private message
flyinspirit001
Apprentice
Apprentice


Joined: 25 May 2004
Posts: 266
Location: localhost,localdomain

PostPosted: Mon Jul 12, 2004 9:22 am    Post subject: Reply with quote

per far si che l'emerge vada avanti e tu possa uscire dalla tua connessione ssh fai emerge quellochevuoi &
fa partire il comando in backgroud e va avanti quando ti slogghi dalla macchina

x gli errori di emerge kiedo conferma ai veterani.. :lol:
see ya
_________________
"Ride the infinity, be your best. For you, for all"
Dungeon01 - linux registered user #362502


Last edited by flyinspirit001 on Mon Jul 12, 2004 10:21 am; edited 1 time in total
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Mon Jul 12, 2004 9:55 am    Post subject: Reply with quote

Il log di emerge è questo
Code:
/var/log/emerge.log

Però non ti registra gli eventuali errori di un emerge, ma solo se l'operazione è andata a buon fine o meno.

Nel tuo caso potrebbe esser utile redirigere l'output del comando che lanci:
Code:
emerge quellochevuoi &> nomefile.txt
Così facendo in nomefile txt ti dovresti ritrovare tutto l'output di emerge. Ovviamente presta attenzione alle dimensioni che potrebbe raggiungere nomefile.txt perchè emerge non è tirchio di output :)
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)


Last edited by .:deadhead:. on Mon Jul 12, 2004 10:41 am; edited 1 time in total
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jul 12, 2004 10:20 am    Post subject: Reply with quote

.:deadhead:. wrote:
Nel tuo caso potrebbe esser utile redirigere l'output del comando che lanci: [code]emerge quellochevuoi &> nomefile.txt


non funziona, avevo già provato diverso tempo fa... fedeliallalinea mi aveva anche spiegato il motivo, tirando in causa stidin stdout e stderr... bisognerebbe redirigerli tutti e tre al file, per ottenere un risultato, altrimenti ti da a malapena i primi input di emerge.

Coda
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Mon Jul 12, 2004 10:32 am    Post subject: Reply with quote

secondo me puoi fare cosi'

Code:

emerge asdasd &1>stdout.txt &2>stderr.txt &


e chiudere con sicurezza.
teoricamente ci trovi tutto (oppure fai

Code:

emerge asdasd &1>output.txt &2>>output.txt &


per avere tutto in un file, credo :)

ciao!
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Jul 12, 2004 10:44 am    Post subject: Reply with quote

Quote:
Esempio: stderr e stdout verso file

Questo porterà ogni output di un programma su un file. Può risultare a volte utile per cron, se vuoi che un comando passi in assoluto silenzio.

rm -f $(find / -name core) &> /dev/null


Questo (pensando a cron) eliminerà ogni file chiamato 'core' in qualsiasi directory. Osserva che dovresti essere piuttosto sicuro di cosa sta facendo un comando, prima di eliminarne ogni output.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
4440
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 106

PostPosted: Mon Jul 12, 2004 10:50 am    Post subject: Reply with quote

ho seguito tutti i vostri consigli ma continua a mostrami dell'output
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Mon Jul 12, 2004 10:54 am    Post subject: Reply with quote

McAuriel wrote:
ho seguito tutti i vostri consigli ma continua a mostrami dell'output


non voglio fare il saputello... ma deve funzionare

prova a dare il comando nel seguente modo:

Code:

$ ( emerge ciccipolenta ) &> output.txt &


attento agli spazi, e le parentesi non sono fondamentali.

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
marco86
Guru
Guru


Joined: 04 Jun 2004
Posts: 574
Location: /italy/torino/valli_di_Lanzo

PostPosted: Mon Jul 12, 2004 10:55 am    Post subject: Reply with quote

e dare il comando
Code:

nohup emerge <nome_pacchetto>

dai un'occhiata qua
_________________
Se il destino è contro di noi...bhe, peggio per lui....!!
Back to top
View user's profile Send private message
4440
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 106

PostPosted: Mon Jul 12, 2004 11:17 am    Post subject: Reply with quote

marconordkapp wrote:
e dare il comando
Code:

nohup emerge <nome_pacchetto>

dai un'occhiata qua

ora funziona!
grazie
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Jul 12, 2004 12:12 pm    Post subject: Reply with quote

io per questi casi preferirei screen!

-entri in ssh
-lanci screen e dai un nome alla sessione (emerge in questo caso)

Code:

screen -S emerge


a questo punto lanci l'emerge che vuoi..

premi CTRL-a-d e fai un detach

esci dal sistema remoto (ssh)

a quel punto quando rientri (in remoto)

lanci

Code:

screen -r


e ri "attacchi" la tua sessione con gli esiti (spero positivi) del tuo emerge.

ciao
_________________
while True:Gentoo()
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