Housekeeping null 2>&1 in /dev

Tags
aix, solved

 
Thread Tools Search this Thread
# 1  
Old 05-25-2018
Housekeeping null 2>&1 in /dev

Hello,

Does anyone know how to housekeeping the null 2>&1 file in /dev?
its fill up my system, please help.

Housekeeping null 2>&1 in /dev-capture-jpg

Thanks Smilie
# 2  
Old 05-25-2018
Find the process that is writing to it. Kill that process. Remove the file. And, fix the redirection in the process that was writing to it before you restart that process.

The process will be (or will have been) running as root. There will be a redirection in that process that looks something like:
Code:
> "/dev/null 2>&1"

It should be something more like one of the following:
Code:
> "/dev/null" 2>&1
> /dev/null 2>&1

This User Gave Thanks to Don Cragun For This Post:
only (05-25-2018)
# 3  
Old 05-25-2018
Quote:
Originally Posted by Don Cragun
Find the process that is writing to it. Kill that process. Remove the file. And, fix the redirection in the process that was writing to it before you restart that process.

The process will be (or will have been) running as root. There will be a redirection in that process that looks something like:
Code:
> "/dev/null 2>&1"

It should be something more like one of the following:
Code:
> "/dev/null" 2>&1
> /dev/null 2>&1

Thanks Don for your help. Smilie
# 4  
Old 05-25-2018
See: [Tip] /dev filling because of malformed IBM script

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Don Cragun (05-25-2018)

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
2>/dev/null tricampeon81 Shell Programming and Scripting 4 11-26-2015 03:36 PM
Size of file /dev/./null 2>&1 primo102 AIX 10 08-13-2015 08:00 AM
Help with /dev/null Please bbbngowc Shell Programming and Scripting 2 01-02-2013 02:40 PM
Redirecting standard out to /dev/null goes to file "/dev/null" instead jbmorrisonjr Shell Programming and Scripting 5 06-06-2012 08:27 PM
/dev/null 2>&1 Versus /dev/null 2>1 glev2005 UNIX for Dummies Questions & Answers 3 03-08-2011 02:20 PM
Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null" proactiveaditya Shell Programming and Scripting 4 12-14-2009 10:12 AM
Meaning of "> /dev/null 2>&1" salanalani Shell Programming and Scripting 10 07-22-2008 04:29 PM
/dev/null what is the use of it? webmunkey23 Shell Programming and Scripting 3 07-03-2008 08:47 AM
/dev/null olaris Shell Programming and Scripting 7 06-20-2008 03:12 PM
What is /dev/tty /dev/null and /dev/console civic2005 Solaris 12 01-04-2008 07:56 AM
> /dev/null rrs Shell Programming and Scripting 2 06-19-2006 05:29 AM
Q1 :/dev/null Q2 -A big123456 UNIX for Advanced & Expert Users 4 11-10-2005 02:16 AM
/dev/null sam71 UNIX for Dummies Questions & Answers 3 05-05-2005 10:25 PM
/dev/null 2>&1 question BAM UNIX for Dummies Questions & Answers 1 04-29-2003 01:08 PM
>/dev/null piltrafa UNIX for Dummies Questions & Answers 1 10-26-2001 06:46 PM