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 ... « 466 467 468 469 [470] 471 472 473 474 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Shaper
.consigliere.

User info:
Registered: Sep 2007
Posts: 147 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Secondo anno
Time Online: 1 Day, 11:23:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Vi segnalo una cosa, di cui forse si era già parlato in precedenza.
Considerando questo script per trovare tutti i file con dimensione dispari

code:
#!/bin/sh find / -type f | xargs ls -l | tr -s “ “ “ “ | while read FILE; do NOME=$(echo $FILE | cut –d “ “ -f 9) DIM=$(echo $FILE | cut –d “ “ -f 5) tmp=$(expr $DIM % 2) if [ $tmp -ne 0 ] ; then echo "$NOME -> $DIM" fi done exit 0


se lo mando in esecuzione con l'immagine minx3-full.qcow funziona senza problemi; se invece uso l'immagine perEsame mi da, per ogni iterazione del for, l'errore
[ : syntax error
expr : syntax error

Gran brutta roba, dal momento che quella che useremo dopodomani sarà probabilmente l'immagine perEsame...

Dite che se durante l'esame scrivo lo script così e non mi va me lo tengono comunque buono? (dal momento che, concettualmente, è giusto)

__________________
Eidolon64|Blog

Last edited by Shaper on 16-09-2009 at 20:22

16-09-2009 20:15
Click Here to See the Profile for Shaper Click here to Send Shaper a Private Message Visit Shaper's homepage! Find more posts by Shaper Add Shaper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:11.    Post New Thread    Post A Reply
Pages (571): « First ... « 466 467 468 469 [470] 471 472 473 474 » ... 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.138 seconds (27.63% PHP - 72.37% MySQL) con 23 query.