Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 02:08 AM
тАО01-29-2003 02:08 AM
i have the info on 2>&1 but this 2>&- is unclear to me... could someone please explain this to me, and maybe, if possible, explain (or point to) other examples of redirecting?
thanks
jerome
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 02:13 AM
тАО01-29-2003 02:13 AM
Re: 2>&-
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 02:17 AM
тАО01-29-2003 02:17 AM
Re: 2>&-
if you use 2>&1 then stderr is redirected to stdout.
if you use 2>&- then stderr will be closed which means that no stderr messages will be written out.
You can read about this in the manual of ksh in the section Input/Output:
man ksh
Regads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 02:28 AM
тАО01-29-2003 02:28 AM
Re: 2>&-
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 03:58 AM
тАО01-29-2003 03:58 AM
Re: 2>&-
concerning "other examples of redirecting"
Please note that there is also the "tee" which is often used..
E.g.
L-9iAS: d05/9iAS>who |tee -a yd.txt
deg pts/ta Jan 29 07:58
jeanfr pts/tb Jan 29 15:34
glenda pts/tc Jan 29 12:16
L-9iAS: d05/9iAS>more yd.txt
deg pts/ta Jan 29 07:58
jeanfr pts/tb Jan 29 15:34
glenda pts/tc Jan 29 12:16
L-9iAS: d05/9iAS>
Write a list of users to the screen and also append the list to the file yd.txt
see man tee
Hope this helps!
Regards