- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: many /dev/null:12345 files
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
Forums
Discussions
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
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-26-2004 02:07 AM
11-26-2004 02:07 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:43 AM
11-26-2004 02:43 AM
Re: many /dev/null:12345 files
Obviously some incorrect code or a shell script is doing this. Since normal users will not be able to create files under /dev directory (unless you gave full permissions to it), it should be a root process.
Check all the cronjobs, processes/scripts running on the system etc.,. If there are files with current timestamp see if there are any processes attached to them using 'fuser /dev/null*' command.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:48 AM
11-26-2004 02:48 AM
Re: many /dev/null:12345 files
Cleanup help:
You should be able to use one of the file tests to identify and remove these buggers via script.
[ -d $file ] for example.
I'd make a little list:
ls -1 | sort > /tmp/filelist
edit it. Make very sure the device /dev/null by itself is not listed. Your sort should put it at the top or bottom.
then
while read -r filename
do
rm -f $filename
done < /tmp/filelist
In a perfect world, it would be best to clean up after identifying the source of the files.
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
11-26-2004 02:53 AM
11-26-2004 02:53 AM
Re: many /dev/null:12345 files
You must be redirecting something to that location with some command like this:
command &>- 2>&1
Best Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 03:51 PM
11-26-2004 03:51 PM
Re: many /dev/null:12345 files
find /dev -type f -exec ll {} \;
Bill Hassell, sysadmin