10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello guys.
i have couple of log files which i need to rotate them . so i need a script to run every 30 minutes in the server and rotate the log files if they size pass the 100MB.
would you please help me? (4 Replies)
Discussion started by: Ymir
4 Replies
2. Shell Programming and Scripting
I want to convert the log files to xls. by bash script I converted it to csv, but I need to make some changes in some of them. please dont ask why xls and not csv. I need xls and this is to be a automated process.
I am new to linux, bash and NULL in Perl.
That would be nice if someone help me to... (6 Replies)
Discussion started by: frhling
6 Replies
3. Shell Programming and Scripting
I've been finding myself using a log file colorizer written in perl to reformat and colorize the output from many different programs. Mainly, however, I use it to make the output from "tail -f" commands more readable.
The base perl script I use is based on "colorlogs.pl" available from the... (1 Reply)
Discussion started by: rcsteiner
1 Replies
4. Shell Programming and Scripting
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies
5. Shell Programming and Scripting
hi ,
While working on perl, have to write a continuous log file which I can monitor. I tried like,
open (LOG,'>'.$log.'/Report_'.$todaysdate.'.log') or die("Unable to create the log file");
print LOG "\nDate : ".`date`;
But when I ran the script in backend and monitor log, it... (1 Reply)
Discussion started by: Deei
1 Replies
6. Shell Programming and Scripting
Can anyone please correct the code. I am trying to copy the user input to an output file log.txt:
the script works fine but when I am trying to copy the user input error is generated.
Thanks in advance.
#!/usr/bin/perl
$temp = "/home/log.txt";
$reply = "";
print 'Enter the code:... (1 Reply)
Discussion started by: sureshcisco
1 Replies
7. Shell Programming and Scripting
Hello,
I'm sure this is a very simple problem, but I'm having trouble thinking of an efficient way to do the following:
given a large centralized ssh-log, one file on a syslog server, not separated by machines (I wish it were), that looks something like this:
Sep 27 16:20:56 machine-name... (1 Reply)
Discussion started by: droog72
1 Replies
8. Shell Programming and Scripting
Hi anyone can help.how can i get all second column data in this log below??
x 799002577959.pdf, 25728 bytes, 51 tape blocks
x 800002357216.pdf, 25728 bytes, 51 tape blocks
x aadb090910.txt, 80424 bytes, 158 tape blocks
x tsese090909.txt, 13974 bytes, 28 tape blocks (4 Replies)
Discussion started by: netxus
4 Replies
9. Shell Programming and Scripting
Hi,
I am having issue where I have to tail 3 log files continuously (forever) and while I am reading the files , parse them and shove the data into DB. I can do this with one file totally fine but how can I read 3 files at the same time? I am not really looking for code (but would be nice) but... (3 Replies)
Discussion started by: Dabheeruz
3 Replies
10. Shell Programming and Scripting
Hi,
I am new to perl. I want to write a perl script to monitor logs. Where i want to monitor exceptions logged or any kind of error strings. I have a dir(On Solaris) with multiple log file which keeps rolling to .gz file after some time in that same dir. These logs files size keeps on... (0 Replies)
Discussion started by: solitare123
0 Replies