Housekeeping null 2>&1 in /dev


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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-capturejpg

Thanks Smilie
# 2  
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:
# 3  
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
Login or Register to Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
Size of file /dev/./null 2>&1
primo102
Hello Can I just remove/delete flile ? rw-r--r-- 1 root system 2385088512 Jun 30 21:25 /dev/null 2>&1 size of this flile is 2274.75 m and fill up my filesystem: Filesystem MB blocks Used Free %Used Mounted on /dev/hd4 2560.00 2558.59 1.41 100% /... AIX
10
AIX
Redirecting standard out to /dev/null goes to file "/dev/null" instead
jbmorrisonjr
I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:...... Shell Programming and Scripting
5
Shell Programming and Scripting
/dev/null 2>&1 Versus /dev/null 2>1
glev2005
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&" echo "hello" > /dev/null 2>&1 echo "hello" > /dev/null 2>1... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers
Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null"
proactiveaditya
Does >/dev/null 2>&1 and 2>&1 >/dev/null mean the same?... Shell Programming and Scripting
4
Shell Programming and Scripting
/dev/null 2>&1 question
BAM
Hi, suppose you have the following line at your crontab : 5 * * * * /usr/mine/script > /dev/null 2>&1 now i understood that the " > /dev/null 2>&1 outputs both Standard outpout and Standard Error messages to the /dev/null device or file... the first part , " > /dev/null " transfers...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers