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 > esercizi shell
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
jacktheripper
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 264 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 1 specialistica info
Time Online: 1 Day, 23:04:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
esercizi shell

ciao a tutti...
ho iniziato a fare un pò di pratica cn la shell di minix.
c'era un esercizio che chiedeva "trovare tutti i files eseguibili >5k e evidenziare i 5 + grandi...è giusto

find / -name *.sh -o -size +5 -size -200 | tail -5

??? (mi riferisco all'uso de size che non ho ben capito cm funza a dire il vero..)

un altro esercizio chiedeva "archiviare i files + grandi di 5k e + pccoli di 200k..è giusto

#!/bin/sh
for i in $(find / -type f -size +5 -size -200);do
ar r archivio $i;
done

?? perchè se lo eseguo lavora un attimo e poi mi dice "no space"...(perchè ho notato che praticamente tutti i file del sistma sono più piccoli di 200k..quindi mi sembrerebbe plausibile però volevo chiedere anche a voi..)

grazie a tutti

27-06-2007 19:08
Click Here to See the Profile for jacktheripper Click here to Send jacktheripper a Private Message Find more posts by jacktheripper Add jacktheripper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa ma c'è addirittura un thread in EVIDENZA pieno zeppo di sta roba, potresti almeno leggere un paio di post prima di crearne uno nuovo con la confusione che ne deriva!
Ci sono anche i due script che chiedi tu!
La tua prima soluzione la vedo buia, la seconda è ok (ma poteva essere fatta in modo + semplice!!!), ma comunque trovi tutto nel thread che ti ho detto.
Se ti dice no space è perchè probabilmente hai creato un hard disk virtuale troppo piccolo!

__________________
The answer is blowing in the wind...

27-06-2007 19:20
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jacktheripper
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 264 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 1 specialistica info
Time Online: 1 Day, 23:04:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

eh hai ragione ma non volevo imparare a memoria le soluzioni postate volevo mettere le mie coi miei dubbi...sembrerà un pò egoistico ma non mi sembra d'aver fatto tutto sto casino,,cmq grazie per avermi risposto,...(ps perchè dici che la prima la vedi buia?..a me sembra tutto sommatto ok..)

27-06-2007 20:18
Click Here to See the Profile for jacktheripper Click here to Send jacktheripper a Private Message Find more posts by jacktheripper Add jacktheripper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Perchè in minix cosi' come in linux le estensioni dei file non sono così importanti e ti trovi dei file che sono eseguibili senza l'estensione sh (che poi vuol dire solo che quel file è uno script che molto spesso non è affatto eseguibile se non impostato dall'utente...), quindi devi agire sui permessi di esecuzione dei file come mostrato nel thread generale, poi le soluzioni possono essere molteplici...

__________________
The answer is blowing in the wind...

27-06-2007 21:16
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maxj8
.primate.

User info:
Registered: Aug 2004
Posts: 76 (0.01 al dì)
Location: Pavia
Corso: Informatica
Anno: ehm...
Time Online: 13:34:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quando usi $(.........) se il contenuto è troppo grosso indipendentemente dalla dimensione del disco ti esce il messaggio 'out of space'. In questo caso devi usare una soluzione alternativa che mi sembra ci sia in uno degli esempi del wiki

28-06-2007 17:12
Click Here to See the Profile for maxj8 Click here to Send maxj8 a Private Message Find more posts by maxj8 Add maxj8 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:47.    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.068 seconds (65.53% PHP - 34.47% MySQL) con 23 query.