[so] Redirectari

Catalin Alexandru so@cursuri.cs.pub.ro
Wed, 3 Nov 2004 11:01:37 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C4C194.80AB5850
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 7bit

In cazul in care am o comanda de genul:
 
    cmd1 && cmd2 | cmd3
 
Iesirea carei comenzi trebuie redirectata catre cmd3? Am impresia 
ca prioritatile ar trebui sa fie invers (pipe mai mare decat conditional). 
Asa pare sa funnctioneze si din cmd.exe.
 
In cazul unei comenzi de genul:
 
    cmd1 >temp | cmd2
 
Catre ce redirectez iesirea: spre fisier sau catre cmd2? Sau raportez
eroare?
 
Multumesc
Catalin

------=_NextPart_000_0000_01C4C194.80AB5850
Content-Type: text/html;	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-WrongBodyEncoding: 1
X-NoCharsWrongEncoded: 10

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.3790.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial size=3D2>In =
cazul in care am=20
o comanda de genul:</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004>&nbsp;&nbsp;&nbsp; <FONT =
face=3DArial=20
size=3D2>cmd1 &amp;&amp; cmd2 | cmd3</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial =
size=3D2>Iesirea carei=20
comenzi trebuie redirectata catre cmd3? Am impresia </FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial size=3D2>ca =
prioritatile ar=20
trebui sa fie invers (pipe mai mare decat conditional). =
</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial size=3D2>Asa =
pare sa=20
funnctioneze si din cmd.exe.</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial size=3D2>In =
cazul unei=20
comenzi de genul:</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004>&nbsp;&nbsp;&nbsp; <FONT =
face=3DArial=20
size=3D2>cmd1 &gt;temp | cmd2</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial size=3D2>Catre =
ce redirectez=20
iesirea: spre fisier sau catre cmd2? Sau raportez</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2>eroare?</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2>Multumesc</FONT></SPAN></DIV>
<DIV><SPAN class=3D840315808-03112004><FONT face=3DArial=20
size=3D2>Catalin</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_0000_01C4C194.80AB5850--