bash question

Nick Krassas dreamer at darkness.compulink.gr
Fri May 22 16:33:21 EEST 1998


> Xairete,
> 
> Erwthsh: H3era mexri twra pws sto bash to > shmainei redirect tou stdout
> kai to 2> shmainei redirect tou stderr. Polles fores eida omws kai to
> 2>& n' to 1>&5 (p.x. se kapoio prosfato mail sth lista sth grammh:
> configure:1853: g++ -o conftest -O2 -Wall  -s conftest.C -lsocket   1>&5 )
> 
> Mporei kapoios na e3hghsei ti sumbainei n' na mou pei se poio document
> na to koita3w? Sto man tou bash(1) den eida tipota anlutikotero pera
> ths e3hghshs tou > kai 2> .
> 
> TIA.
> 
> -gdk.
> 
 Mate :-)

	>&digit  Associates file with the file descriptor digit as
standard output
 	<&digit Associates the file with the file descriptor digit as
standard input
	>&- Close standard output
	<&- Close standard input 

.... $command 1>kokofile 2>&1
 
will run the command with the standard output and standard error merged
...tam tam ...... that is, it associates file sescriptor 2 with whatever
file,... file descriptor 1 was accociated with kokofile.

Dinozzzzzzzzzz


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list