- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- STDOUT/STDERR/cron trivia
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
06-09-2005 01:14 AM
06-09-2005 01:14 AM
logout
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
. /etc/profile 1>/dev/null 2>&1; /optim/bin/sel_efta_priv -p1 -p5 -p9 -sy 1>/dev/null 2>&1 #Turn on statements for privileges
As you can see, streams 1 and 2 are being directed to /dev/null in the cron entry. Any ideas about why the "logout" is making its way through to STDOUT or STDERR?
I think the answer lies in the ".", but I can't remember the specifics on what this does in the shell. Isn't it "run the following in the current shell process"?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:16 AM
06-09-2005 01:16 AM
Re: STDOUT/STDERR/cron trivia
If this worked previously, what has changed recently?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:24 AM
06-09-2005 01:24 AM
Re: STDOUT/STDERR/cron trivia
It still works fine; I have just started trimming down all the root Email that I get (from multiple hosts) and this message has been one that I haven't had time to look into before now... hence, the post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:41 AM
06-09-2005 01:41 AM
Re: STDOUT/STDERR/cron trivia
"trap "echo 'logout'" 0"
line that causes this. I tried removing it and that caused other problems with /etc/profile so I decided to just live with it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:46 AM
06-09-2005 01:46 AM
Re: STDOUT/STDERR/cron trivia
What kind of problems happen when the line is removed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:53 AM
06-09-2005 01:53 AM
Re: STDOUT/STDERR/cron trivia
You can take it out.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:54 AM
06-09-2005 01:54 AM
Re: STDOUT/STDERR/cron trivia
Sorry, I don't recall why I decided to live with it, but a little research into the trap command led me to this little tidbit:
root# trap
trap -- 'echo '\''logout root'\' EXIT
root#
The trap seems to still be in effect, but only for root:
$ trap
$
That leads me to believe that it was OK for regular users but caused problems for root?
Pete
Pete