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!

close stdout 1

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
IL
Hi,
I'd like to know is there difference in these 2 forms:
myscript >&-
myscript >/dev/null

Thanks,
Vadim
 
I usually use the &- with exec but IMHO the first command is to close the myscript stdout

But the second one is just redirecting all the output of the script to /dev/null (It is just if you don't care what is the output of that file - just like discarding the output)

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top