Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting stdout in csh 1

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
US
Does anyone know if it is possible to redirect only stderr to a file when using csh. I need the equivalent to the ksh command

command 2> tmp.dat

Thanks.

CaKiwi
 


set mytty = `tty`
( command > $mytty ) >&! tmp.dat

 
Thanks tdatgod, just what I needed. (They subject line should have said stderr not stdout, of course.)

CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top