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 febbraio
Pages (5): « 1 2 [3] 4 5 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora quello che era arrivato a me era prendere i file che iniziavano per C nella cartella usr e comprimerli in un file tar.gz

a casa l'ho risolto copiano i file in una cartella temp e compressando quella cartella...

Trentini mi disse che il for manco serviva...

e Monga mi disse che non si poteva fare da linea di comando...

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:18
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giave
.amico.

User info:
Registered: Apr 2003
Posts: 32 (0.00 al dì)
Location: Cesano Maderno
Corso: informatica
Anno:
Time Online: 1 Day, 15:56:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by PaU
allora quello che era arrivato a me era prendere i file che iniziavano per C nella cartella usr e comprimerli in un file tar.gz

a casa l'ho risolto copiano i file in una cartella temp e compressando quella cartella...

Trentini mi disse che il for manco serviva...

e Monga mi disse che non si poteva fare da linea di comando...


dovrebbe essere cosi:

find /usr -type f -name c* |xargs tar -cvf nomearchivio.tar

che non si possa fare da linea di comando penso sia esagerato (sempre se non ho sbagliato :))

28-02-2008 19:32
Click Here to See the Profile for giave Click here to Send giave a Private Message Find more posts by giave Add giave to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa non basta

find /usr -name C\*|xargs tar -cvf pippo
e poi fai un bzip2 -z pippo per il formato bz2. Non credo esista gzip per minix
Il for non serve a nulla...

28-02-2008 19:32
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il formato doveva essere tar.gz...

cmq vedo se funza...

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:35
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Attention: Mettete C\* perchè a quanto dicono se la prima parola è Ca cercherà solo quelle con scritto Ca. O così ho capito.
E poi chiede tar.gz, tar lo archivia solo, bisogna anche comprimerlo. E penso Monga intenda che non si possa fare da linea di comando perchè col pipe bzip2 mi va in palla. Allora lo fai in 2 istruzioni

28-02-2008 19:35
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

error: operator expected...

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:36
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Al posto di bzip2 puoi usare compress che crea i formati .z.
.gz non esiste in minix mi sa, ma un qualunque formato di compressione dovrebbe andare bene

28-02-2008 19:38
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma in quale delle due isctruzioni te lo da?
nella prima ovvero
find /usr -type f -name C\*|xargs tar -cvf pippo
Oppure quando lo comprimi
bzip2 -z pippo

28-02-2008 19:41
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nella prima istruzione

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:42
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Prova a fare solo il find senza il pipe dopo

28-02-2008 19:43
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Strano, a me lo fa perfettamente. Controlla di aver digitato tutto correttamente

28-02-2008 19:44
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora aggiornamento...

funziona ma quando vado ad aprire il file tar.gz trovo pochissimi file

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:45
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
PaU
.precettore.

User info:
Registered: Oct 2004
Posts: 80 (0.01 al dì)
Location:
Corso: Infomatica
Anno: Primo
Time Online: 16:33:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

14 file per l'esattezza

__________________
L'ignoranza è il pane dei poveri

28-02-2008 19:45
Click Here to See the Profile for PaU Click here to Send PaU a Private Message Find more posts by PaU Add PaU to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

find /usr -type f -name c\*>prova
cat prova |xargs ar rc rac.tar.gz
rinidirizzo su prova per evitare out of space o troncamenti di stringa

28-02-2008 19:46
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Diuzza
.illuminato.

User info:
Registered: Aug 2004
Posts: 169 (0.02 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 1 Day, 8:30:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E sì, se devono inizare con C maiuscolo... Fai passo per passo prima il find e vedi che file ci sono.
Poi fai il tar. Dopodichè guarda con tar -t pippo se li contiene tutti. Il bzip2 te li comprime solo quindi dovrebbe essere ok

28-02-2008 19:46
Click Here to See the Profile for Diuzza Click here to Send Diuzza a Private Message Find more posts by Diuzza Add Diuzza to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 14:49.    Post New Thread    Post A Reply
Pages (5): « 1 2 [3] 4 5 »   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.127 seconds (72.31% PHP - 27.69% MySQL) con 24 query.