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 (571): « First ... « 558 559 560 561 [562] 563 564 565 566 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.04 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Penso che senza questo 3d non avrei ai passato l'esame di laboratorio! Per futura memoria posto l'esercizio che mi è stato dato:

Shell Script
Trovare l'occupazione totale dei file che sono stati modificati l'ultima volta di venerdi.

#!/bin/sh
SOMMA=0
SIZE=0
find / -type f | while read line; do
Day=$(stat -Mtime $line | cut -f 1)
if [ $Day = "Fri" ]; then
SIZE=$(echo $line | xargs du | cut -f 1)
SOMMA=$(expr $SOMMA + $SIZE)
fi
done
echo "Occupazione totale: $SOMMA"

Kernel
Fare in modo che ogni volta che viene creato un link simbolico venga stampato il nome del link.

Non sono riuscito a farlo, comunque la strada giusta è accedere al file system , e all'interno del file open.c andare a modifizare la funzione do_slink. Monga mi ha dato un punto per la buona volontà :D Totale 25!

Grazie ancora a tutti!

10-07-2011 13:32
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 17:00.    Post New Thread    Post A Reply
Pages (571): « First ... « 558 559 560 561 [562] 563 564 565 566 » ... 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.062 seconds (63.48% PHP - 36.52% MySQL) con 24 query.