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!

Redirect Error

Status
Not open for further replies.

bennotech

Technical User
Aug 7, 2002
64
GB
Hello All,
Would like to redirect any errors from a command in a ksh script. Would I use something like :

"command" 2>&1 >/dev/null

thanks
Benno

...it really does get worse than this !!
 
command" >/dev/null 2>&1

thanks to mike042

...it really does get worse than this !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top