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 > dubbio sulla prova di laboratorio
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
asgar
.primate.

User info:
Registered: Jun 2009
Posts: 78 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:31:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
dubbio sulla prova di laboratorio

qualcuno sa se nella prova di lab possono uscire anche i pthreads? a lezione con monga li abbiamo fatti ma nell'avviso della prova non mi sembra che siano compresi fra gli argomenti:
http://homes.dico.unimi.it/sisop/bl....cgi/index.html

22-06-2011 19:45
Click Here to See the Profile for asgar Click here to Send asgar a Private Message Find more posts by asgar Add asgar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
SanJuanWolf89
.consigliere.

User info:
Registered: Jun 2010
Posts: 100 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 7:05:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

x ottenere la sufficienza basta partizionare e svolgere esercizio shell (che sicuro nn centra na cippa coi pthread) poi se nella parte del kernel chiedono i p thread vadano al diavolo

23-06-2011 08:00
Click Here to See the Profile for SanJuanWolf89 Click here to Send SanJuanWolf89 a Private Message Find more posts by SanJuanWolf89 Add SanJuanWolf89 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

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

Post actions:

Edit | Report | IP: Logged

Una domanda: provo ad eseguire in minix questo script trovato in un thread qui su dsy...

digito: vim test.sh

una volta aperto vim scrivo il codice dello script

#!/bin/sh
for i in $(cut /etc/passwd -d : -f 3 | sort -n | uniq); do
SUM=0
for file in $(find / -type f -user $i | xargs du | cut -f 1); do
SUM=$(expr $SUM + $file)
done
echo "L'utente $i occupa $SUM KB sul sistema"
done

salvo ed esco. Aggiungo i permessi di esecuzione:

chmod +x test.sh

eseguo lo script:

./test.sh

ma non funziona il risultato è vedermi stampato questo messaggio:

Usage: cut -b list [-n] [file ...]
cut -c list [file1 ...]
cut -f list [-d delim] [-s] [file ...]

Qualcuno sa spiegarmi perchè???

23-06-2011 10:54
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
Collapse
pintu
.illuminato.

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

Post actions:

Edit | Report | IP: Logged

Risolto. Dovevo invertire i parametri del cut...prima le opzioni (-d : -f 3) e poi il nome del file!!

23-06-2011 11:01
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 12:05.    Post New Thread    Post A Reply
  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.054 seconds (64.63% PHP - 35.37% MySQL) con 23 query.