Search Results

Search: Posts Made By: rajkumarme_1
6,334
Posted By rajkumarme_1
Thanks Corona688...
Thanks Corona688 (https://www.unix.com/members/43551.html)

It worked. I'll do some tests and see if there are any issues with pipes.
6,334
Posted By rajkumarme_1
@Corona688 - Your solution works if the log file...
@Corona688 - Your solution works if the log file which you took as input is already created. But in this case, the log file will be updating always whenever a transaction is processed.

Also, per...
6,334
Posted By rajkumarme_1
prepend timestamp to continiously updating log file
Hi,

I have a process which outputs to a log.

Below is the code snippet:


process &> $LOGFILE&


The log file keeps on updating whenever a transaction is processed.
The log file...
2,315
Posted By rajkumarme_1
Yes, the search string was different. There...
Yes, the search string was different.

There were like 3 or 4 lines which repeat and I did not want to paste all the four search strings as it is similar to one of them.

Now then, I am using the...
2,315
Posted By rajkumarme_1
Ok, below are few lines which repeat: ...
Ok, below are few lines which repeat:


Calling java class for read.
Java read returned no data currently available.
Calling java class for read.
Java read returned no data currently available....
2,315
Posted By rajkumarme_1
Sorry about the typo. Yes, I used the above...
Sorry about the typo.

Yes, I used the above command but it did not work. As a matter of fact, the "process" runs all the time and writes output every second and the log file increases every second...
2,315
Posted By rajkumarme_1
Filter out output and then write to a file
I have a process which writes lots of output to the screen and am capturing it to a file.

But the issue is that there are few lines which repeat every second which is causing the file size to be...
11,004
Posted By rajkumarme_1
hello, i was able to do it but then i do not...
hello,

i was able to do it but then i do not want to run the process/restart the process every hour.

if i start the process now, let it run for the whole day and I would like to create hourly...
12,315
Posted By rajkumarme_1
The code you provided above probably has a typo...
The code you provided above probably has a typo in testing for the file existence. So, I removed one pipe symbol and then used the code you mentioned. It did not log any message on to the screen and...
12,315
Posted By rajkumarme_1
Appreciate your help ahamed. But I tested this in...
Appreciate your help ahamed. But I tested this in Ubuntu and it worked without any issue. When i moved the code code to a development linux environment, then this issue is occuring.


Is it that...
12,315
Posted By rajkumarme_1
Yes, File.dat is existing in the current...
Yes, File.dat is existing in the current directory where this script is executed. The error is occuring when it is executed, runs for few minutes without any issues and then throws that error.
12,315
Posted By rajkumarme_1
I wanted to extend the above functionality to...
I wanted to extend the above functionality to check for a file size and depending on that I want to restart a process.

But there is an error thrown as shown below:
...
12,315
Posted By rajkumarme_1
Hi Ahamed, Below is the code snippet of the...
Hi Ahamed,

Below is the code snippet of the script that I am working on:


sudo su -
ps -ef | grep -i skype > tmp
cat tmp | grep -v grep | awk '{print $2}' > tmp.txt

kill -9 $(cat tmp.txt...
12,315
Posted By rajkumarme_1
Kill a PID using script
Hi,

I wrote a script to kill a process id.

I am able to kill the PID only if I enter the root password in the middle of the execution because I did not run as root i.e after i run the script...
11,004
Posted By rajkumarme_1
thanks for the information! I was able to...
thanks for the information!

I was able to proceed as you mentioned.
11,004
Posted By rajkumarme_1
Create log file periodically ex: hourly
Hello,

I have a command which runs continuously and creates output to STDOUT. Now, in unix, if I create logging for this command, it would create a single log file and keep on updating. As there...
Showing results 1 to 16 of 16

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