Search Results

Search: Posts Made By: rajkumarme_1
2,330
Posted By ahamed101
But the search string is different... it is not...
But the search string is different... it is not matching right?

<process> | egrep -v "(Java read|java class)" | tee 2>&1 ~/abc.log


--ahamed
2,330
Posted By vgersh99
<process> | grep -v "java vm started" | tee 2>&1...
<process> | grep -v "java vm started" | tee 2>&1 ~/abc.log
12,397
Posted By ahamed101
My code checks for the file and then goes...
My code checks for the file and then goes forward... I suggest you try this code and keep an eye on the file... I strongly believe that File.dat is being manipulated by some other process... Check...
12,397
Posted By ahamed101
May be the file is getting deleted or moved by...
May be the file is getting deleted or moved by someother process when the size threshold is reached... thats why you are getting the error after sometime...
I took the liberty to clean up your code...
12,397
Posted By ahamed101
Well, show the code snippet where you are killing...
Well, show the code snippet where you are killing the PID. If you are not the owner, normally it should say "Permission denied". I suppose you are using sudo or something?

You can kill a process...
12,397
Posted By ahamed101
So, you are indeed using sudo. You need to...
So, you are indeed using sudo. You need to configure the sudoers for avoiding the password.
Something like this in your /etc/sudoes file...

raj ALL=NOPASSWD:/full/path/to/your/script

#remove...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy