Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Catturare output in console
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Gaap
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 276

PostPosted: Wed May 31, 2006 12:55 pm    Post subject: Catturare output in console Reply with quote

Come da topic: come posso fare a salvare l' input di un comando in un file di testo?
( me l' avevano detto ma stupidamente non me lo sono scritto :P )


Last edited by Gaap on Wed May 31, 2006 1:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed May 31, 2006 1:31 pm    Post subject: Reply with quote

Non sono sicuro di avere capito, ti serve qualcosa del genere
Code:
$ echo "ciao" | tee input.txt > output.txt
$ cat input.txt
ciao
$ cat output.txt
ciao
oppure non ho capito niente ?
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
Gaap
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 276

PostPosted: Wed May 31, 2006 1:37 pm    Post subject: Reply with quote

Scusa ho sbagliato io.. dovrei catturare l' output.. :S
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed May 31, 2006 1:37 pm    Post subject: Reply with quote

l'output di un comando?
Code:
emerge -uDNpv world > ~/emerge.txt

se vuoi accodare in un file usi >> al posto di >
Back to top
View user's profile Send private message
Gaap
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 276

PostPosted: Wed May 31, 2006 1:44 pm    Post subject: Reply with quote

Perfetto grazie 1000 era proprio quello che cercavo.. :)
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed May 31, 2006 1:55 pm    Post subject: Reply with quote

mmm! dai un occhio anche a questo. è la prima cosa che ho trovato su google ma dovrebbe fare l caso tuo. parla di freebsd ma dovrebbe essere abbastanza simile la cosa. http://www.freebsd.org/doc/it_IT.ISO8859-15/books/unix-introduction/special-features-file-redir.html
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed May 31, 2006 1:57 pm    Post subject: Reply with quote

Per avere qualche informazione in più dai una lettura qui (a me ha chiarito enormemente le idee :cool:):

http://www.pluto.it/files/ildp/HOWTO/Bash-Prog-Intro-HOWTO/Bash-Prog-Intro-HOWTO-3.html
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Gaap
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 276

PostPosted: Wed May 31, 2006 2:17 pm    Post subject: Reply with quote

Ok grazie per i link sn molto interessanti...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum