- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/null
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
тАО11-27-2001 03:09 PM
тАО11-27-2001 03:09 PM
a regular file with 666 permission and
root root as user and group.
How can I track what is changing the
/dev/null special file.
Thanks,
steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 03:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 03:28 PM
тАО11-27-2001 03:28 PM
Re: /dev/null
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2001 03:23 AM
тАО11-29-2001 03:23 AM
Re: /dev/null
send unwanted program output
to /dev/null by something
like
verbose_program 2>/dev/null.
Check your cron-scheduled jobs
for occurences of /dev/null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2001 05:57 AM
тАО11-29-2001 05:57 AM
Re: /dev/null
Is the inode number getting changed (ll -i /dev/null)? If so, then something is removing /dev/null and recreating it. That could be done with either an rm or mv command.
Simply redirecting stdout or stderr to /dev/null will not change it to a regular file although the date/timestamp will change.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2001 06:19 AM
тАО11-29-2001 06:19 AM
Re: /dev/null
I agree with Darrell insofar as if /dev/null has become a regular file instead of a special one, then something has removed it.
HOWEVER, the "something" that removes it probably isn't the same "something" that creates it. Once removed, *any* redirection to /dev/null will result in the creation of a regular file.
I'd start by examining scripts for '/dev/null' and/or 'rm'.
You can automate your search by doing something like:
# find . -type f -print |xargs grep rm /dev/null
This will expose all files by name in the current directory with a string "rm".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2001 06:36 AM
тАО11-29-2001 06:36 AM
Re: /dev/null
I was thinking of a single script removing /dev/null and recreating it. I agree that more than likely "something" is removing /dev/null and it is being recreated by another process which could indeed be (and probably is) redirecting output to /dev/null.
Also, if /dev is owned by bin:bin with perms 555, that "something" is apparantly being done by root. A normal user wouldn't be able to delete /dev/null.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2001 07:25 AM
тАО11-29-2001 07:25 AM
Re: /dev/null
This issue is resolved.
Thanks,
steve