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
Forums
Discussions
Discussions
Discussions
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
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
11-20-2002 02:01 AM
11-20-2002 02:01 AM
regards
chakri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 02:25 AM
11-20-2002 02:25 AM
Re: 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 07:43 AM
11-19-2004 07:43 AM
Re: 2>&1
Used like this at the end:
30 00 * * * /usr/local/bin/capture > /dev/null 2>&1
Which runs the shell script clean at 12:30 AM everyday and does not report out to the console or to email whether or not it ran.
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 08:25 AM
11-19-2004 08:25 AM
Re: 2>&1
/dev/null is a device which if you are not intrested in the output of a command/script you can reroute the output to the so called null devices where it disappears like in a black hole.
Every process usually has three channels.
0 for standard in=stdin for input
1 for standard out=stdout for output
2 for standars error=stderr for error messages
2>&1 means reroute stdout to what is defined stdin at that moment.
ls -l /dev > /dev/null 2>&1
reroutes stdin and stderr to /dev/null
Note, some programs use stdout also for data ouput.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 08:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 02:09 AM
11-22-2004 02:09 AM
Re: 2>&1
Michael made a small mistake:
2>&1 means reroute stdout to what is defined stdin at that moment.
Should read:
2>&1 means redirect stderr to what is defined as stdout at that moment.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 02:33 AM
11-22-2004 02:33 AM
Re: 2>&1
I must have been too tired.
correction
2>&1 means reroute stderr to what is defined stdout at that moment.
reroutes stdout and stderr to /dev/null
Note, some programs use stderr also for data ouput.
thanks JP.
Michael