Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > Esame di laboratorio (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (39): « First ... « 22 23 24 25 [26] 27 28 29 30 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
atrent
Professore

User info:
Registered: May 2004
Posts: 87 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:36:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

c'e' qualche volenteroso che raccoglie tutte le soluzioni e le mette sul wiki?

grazie, buone vacanze

30-07-2008 18:10
Click Here to See the Profile for atrent Click here to Send atrent a Private Message Visit atrent's homepage! Find more posts by atrent Add atrent to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joliet Jake
.illuminato.

User info:
Registered: Oct 2006
Posts: 249 (0.04 al dì)
Location: Milano
Corso: Informatica triennale
Anno: 3
Time Online: 1 Day, 4:31:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by ste182
O.O ??
e così funzionava??

a me scritto così non funziona.. a parte che manca il test nell'IF.
cmq io ho dovuto scriverlo così per farlo andare:
#!/bin/sh
for $FILE in (find / -type f -name "*.txt" -mtime +2); do
if test $(wc -l $FILE | tr -s ' ' ' ' | cut -d ' ' -f 2) -lt 500
then ar rc archivio.ar $FILE
fi
done
exit 0


ma veramente "[]" sono proprio un'abbreviazione per il comando test, quindi il problema non è che manca test..

__________________
In Blues We Trust

Last edited by Joliet Jake on 02-08-2008 at 18:05

02-08-2008 18:03
Click Here to See the Profile for Joliet Jake Click here to Send Joliet Jake a Private Message Visit Joliet Jake's homepage! Find more posts by Joliet Jake Add Joliet Jake to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Agarash
.novellino.

User info:
Registered: Nov 2006
Posts: 1 (0.00 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 11:50:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

passato, 25 nella parte del laboratorio!
grazie a questo 3d ovviamente (e a DarkShadow! :D )

domande:
partizione come al solito

shell:
calcolare per ogni utente il numero di file modificati nell'ultimo mese

for user in $(cut /etc/passwd -d : -f 3 | sort -n | uniq); do
item=$(find / -type f -user $user -mtime -31 | wc -l | tr -d ' ' | cut -f 1)
echo "L'utente $user ha modificato $item file nell'ultimo mese"
done

kernel:
ogni volta che viene cancellato un file che inizi per 'x' stampare un messaggio

la soluzione non la so, il file da modificare dovrebbe essere do_unlink.c contenuto nella parte del FileSystem.
Monga mi ha dato 1 punto in più su questa parte perche' bene o male gli ho spiegato qual era il procedimento da adottare e avevo trovato il file da modificare

saluti :cool:

25-09-2008 12:08
Click Here to See the Profile for Agarash Click here to Send Agarash a Private Message Visit Agarash's homepage! Find more posts by Agarash Add Agarash to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Java
Informato

User info:
Registered: Apr 2005
Posts: 62 (0.01 al dì)
Location: Bergamo
Corso: informatica triennale
Anno: 2008
Time Online: 20:19:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mi ha segato comunque

Copiare, conservando gerarchia e permessi, tutti i file sotto /usr/src che iniziano con la lettera m in /tmp

particolare attenzione alla find che trova i file anche nelle sottocartelle...

spero in un vostro aiuto...

appena letto ho pensato "è na cagata" invece è + strano di quanto sembra...ho detto strano non difficile

__________________
io Sofort e te che sei? un pupazzo?

25-09-2008 22:02
Click Here to See the Profile for Java Click here to Send Java a Private Message Find more posts by Java Add Java to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pamarcan
.primate.

User info:
Registered: Mar 2006
Posts: 68 (0.01 al dì)
Location:
Corso: informatica
Anno:
Time Online: 1 Day, 7:02:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se può servire a qualcuno: per ogni utente del sistema stampare i gruppi a cui appartiene, senza utilizzare i comandi id e groups.


for x in $(cat /etc/passwd |cut -d ':' -f 1); do echo "$x: ""$(for y in $(cat /etc/group|grep -s $(cat /etc/passwd|grep -s "$x"|cut -d ':' -f 3)|cut -d ':' -f 1);do echo -n "$y ";done)";done

30-10-2008 23:23
Click Here to See the Profile for pamarcan Click here to Send pamarcan a Private Message Find more posts by pamarcan Add pamarcan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
miguel
.amico.

User info:
Registered: Sep 2008
Posts: 31 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: fuoricorso
Time Online: 9:19:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao.. scusa ma nella parentesi più interna, grep -s non da output.. ed è giusto perché nel man vienne specificato che non da output

e quindi nn vapiu niente... :S ?

17-02-2009 13:24
Click Here to See the Profile for miguel Click here to Send miguel a Private Message Find more posts by miguel Add miguel to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
miguel
.amico.

User info:
Registered: Sep 2008
Posts: 31 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: fuoricorso
Time Online: 9:19:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

PER I CILINDRI.. qualcuno si ricorda se sulla partition table ..

-devono iniziare da 0 o da 1
-devono essere strettamente del tipo
0-5
6-10
11-16

o anche
0-5
5-9
9-14

??

grazie a tutti

17-02-2009 13:33
Click Here to See the Profile for miguel Click here to Send miguel a Private Message Find more posts by miguel Add miguel to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
adlucio
.simpatizzante.

User info:
Registered: Jun 2008
Posts: 16 (0.00 al dì)
Location: milano
Corso: informatica
Anno: secondo
Time Online: 12:06:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao dove posso trovare minix da usare su ubunut?
grazie a tutti

09-06-2009 14:04
Click Here to See the Profile for adlucio Click here to Send adlucio a Private Message Find more posts by adlucio Add adlucio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dazan
:: ZAR Essere Avanti ::

User info:
Registered: Sep 2002
Posts: 1043 (0.13 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi io ho un quesito sulla partizione nella fattispecie

se l'esercizio è :
partizionare secondo disco seguendo lo schema

part tipo dim
1 minix 10
2 fat32 10
3 swap 20
4 minix 10
5 minix 30

il comando per iniziare è giusto part /dev/c0d2 ???

per quanto riguarda la 5° partizione
va all'interno della 4° giusto
anche il caso ci fossero state tipo una 6°- 7° ????

16-06-2009 08:13
Click Here to See the Profile for Dazan Click here to Send Dazan a Private Message Find more posts by Dazan Add Dazan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
xSharKMaNx
un gioco della follia

User info:
Registered: Sep 2007
Posts: 1477 (0.23 al dì)
Location:
Corso: F49
Anno: Laureato
Time Online: 10 Days, 17:15:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Con MINIX hai un max di 5 partizioni "standard", dopodichè dovrai creare le sottopartizioni,

E' corretto /dev/c0d2

Qualora nell'esercizio ci sia chiesto partizionare anche la 6 e la 7 nella 5 partizione dovrai inserire la dimensione totale rimanente inserendo il n.ro di clindro, settore, tracce che trovi nella seconda riga in alto (se non erro).

Una volta inserito tali dati sempre sulla 5 partizione premi il pulsante di > per crearti le ultime due sottopartizioni.

Successivamente dovrai generare il File System con il comando mkfs

Ciao

__________________
Perché, mentre il manganello può sostituire il dialogo, le parole non perderanno mai il loro potere; perché esse sono il mezzo per giungere al significato, e per coloro che vorranno ascoltare, all'affermazione della verità. E la verità è che c'è qualcosa di terribilmente marcio in questo paese. (V)

I popoli non dovrebbero aver paura dei propri governi, sono i governi che dovrebbero aver paura dei popoli. (T.J)

16-06-2009 08:22
Click Here to See the Profile for xSharKMaNx Click here to Send xSharKMaNx a Private Message Find more posts by xSharKMaNx Add xSharKMaNx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dazan
:: ZAR Essere Avanti ::

User info:
Registered: Sep 2002
Posts: 1043 (0.13 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie per la delucidazione solo che io come partizioni standard ne ho 4 allego il prntscr

Attachment: immagine1.jpg
This has been downloaded 41 time(s).

16-06-2009 09:03
Click Here to See the Profile for Dazan Click here to Send Dazan a Private Message Find more posts by Dazan Add Dazan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
xSharKMaNx
un gioco della follia

User info:
Registered: Sep 2007
Posts: 1477 (0.23 al dì)
Location:
Corso: F49
Anno: Laureato
Time Online: 10 Days, 17:15:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Dazan
grazie per la delucidazione solo che io come partizioni standard ne ho 4 allego il prntscr


Il discorso non cambia alla 4 partizione premi > e fai le altre due partizioni

Guarda questo link

http://www.dsy.it/forum/showthread.php?threadid=30276

Dovrebbe fare al caso tuo

Ciao

__________________
Perché, mentre il manganello può sostituire il dialogo, le parole non perderanno mai il loro potere; perché esse sono il mezzo per giungere al significato, e per coloro che vorranno ascoltare, all'affermazione della verità. E la verità è che c'è qualcosa di terribilmente marcio in questo paese. (V)

I popoli non dovrebbero aver paura dei propri governi, sono i governi che dovrebbero aver paura dei popoli. (T.J)

16-06-2009 15:48
Click Here to See the Profile for xSharKMaNx Click here to Send xSharKMaNx a Private Message Find more posts by xSharKMaNx Add xSharKMaNx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dazan
:: ZAR Essere Avanti ::

User info:
Registered: Sep 2002
Posts: 1043 (0.13 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ottimo!

16-06-2009 16:09
Click Here to See the Profile for Dazan Click here to Send Dazan a Private Message Find more posts by Dazan Add Dazan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
francybiga
.amico.

User info:
Registered: Jun 2008
Posts: 24 (0.00 al dì)
Location: San Donato Milanese
Corso: Informatica
Anno:
Time Online: 3 Days, 13:56:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

qualcuno ha una minima idea di come si possa risolvere questi esercizi??
(sono tra quelli che il monga ha messo sulla wiki...)

-Trovare tutti i link simbolici nel filesystem
-Calcolare il rapporto tra il numero di file nel filesystem (o in una directory specificata) e lo spazio occupato ESCLUDENDO gli hardlink
-Calcolare il numero di righe totali che ha scritto sul filesystem un certo utente nell'ultimo mese

16-06-2009 16:20
Click Here to See the Profile for francybiga Click here to Send francybiga a Private Message Find more posts by francybiga Add francybiga to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AAndrea
.amico.

User info:
Registered: Apr 2008
Posts: 25 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 4:05:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by francybiga
qualcuno ha una minima idea di come si possa risolvere questi esercizi??
(sono tra quelli che il monga ha messo sulla wiki...)

-Trovare tutti i link simbolici nel filesystem


-Calcolare il numero di righe totali che ha scritto sul filesystem un certo utente nell'ultimo mese



-

l'ultima penso che intenda "di proprietà di un certo utente" , non penso venga memorizzato chi ha modificato il file per ultimo.
penso sia una roba del genere

find / -type f -user PINCOPALLO | xargs file | grep text$ | cut -d : -f 1 | xargs wc -l | grep total | tr -d ' ' | cut -d t -f 1

17-06-2009 16:13
Click Here to See the Profile for AAndrea Click here to Send AAndrea a Private Message Find more posts by AAndrea Add AAndrea to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:23.    Post New Thread    Post A Reply
Pages (39): « First ... « 22 23 24 25 [26] 27 28 29 30 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.050 seconds (76.80% PHP - 23.20% MySQL) con 26 query.