04-01-2011
shell script to replicate the log files from one location to another in real time
Hi,
On the server, we have app log files in this location /app/logs/error.log
On the same server, in a real time, we would like to replicate that into /var/ directory.
if someone has already done this, please share the script.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi....
how i can configurator a log file on real time....on unix solaris....
thanks a lot....
Best Regards... (3 Replies)
Discussion started by: chanfle
3 Replies
2. Shell Programming and Scripting
Hi all,
i would like to write the shell script program, it can monitor the access_log "real time"
when the access_log writing the line contain "abcdef" the program will be "COPY" this line into a file named "abcdef.txt", do the same thing if the contain "123456" "COPY" it into a file named... (3 Replies)
Discussion started by: eric_wong_ch
3 Replies
3. Shell Programming and Scripting
Hello,
I have a Apache webserver running on RedHat. Its primary function is a proxy server for users accessing the internet. I have a transaction log that logs every transactions of every users. For users trying to access certain sites/content the transactions goes into a 302 redirect loop and... (2 Replies)
Discussion started by: bruno406
2 Replies
4. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
5. Shell Programming and Scripting
Dear experts,
I have an epoch time input file such as : -
1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550
I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies
6. HP-UX
Hey all, I have a problem I was hoping to get some help on. So I have my two auditfiles, audfile1 and audfile2 that can be written to, I want to have the text version of them write to an NFS mount that I have set up. So i already know that i can do .secure/etc/audsp audfile1 > //nfsmount/folder/... (5 Replies)
Discussion started by: CleverRiver6
5 Replies
7. Shell Programming and Scripting
Hi people
I have a bash script with a line like this:
python example.py >> log &
But i can't see anything in the log file while python program is running only if the program ends seems to write the log file.
"$ cat log" for example don't show anything until the program ends.
Is there... (4 Replies)
Discussion started by: Tieso
4 Replies
8. Shell Programming and Scripting
Hi,
I have a log file that gets updated every second. Currently the size has grown to 20+ GB. I need to have a command/script, that will try to get the actual size of the file and will remove 50% of the data that are in the log file. I don't mind removing the data as the size has grown to huge... (8 Replies)
Discussion started by: Souvik Patra
8 Replies
9. Shell Programming and Scripting
Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below.
function log2syslog
{
declare COMMAND
COMMAND=$(fc -ln -0)
logger -p local1.notice -t bash -i -- "$USER:$COMMAND"
}
trap... (12 Replies)
Discussion started by: invinzin21
12 Replies
10. Shell Programming and Scripting
Hi All,
i'm trying to copy the 1.txt files (sample files) in to different path location using the below command.
But it is not copying the files , when i tried for single location able to copy the file.
can any one please assist here.
Please find the below path :-
/ckr_mkr1/licencekey... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT DEBIAN
op_server
OP_SERVER(8) User Contributed Perl Documentation OP_SERVER(8)
NAME
op_server.pl - Proxy server for the Asterisk Flash Operator Panel
SYNOPSIS
op_server.pl [options]
Options:
-?, --help
-p, --pidfile
-c, --confdir
-l, --logdir
-d, --daemon
-v, --version
-X, --debuglevel
OPTIONS
--help Print a brief help message and exits
--pidfile
Specify the pid file to use when running in daemon mode. Defaults to /var/run/op_panel.pid
--confdir
Specify where to look for the configuration files. If omited, it will look for them in the same directory where op_server.pl
resides
--logdir
If specified, will write the log files to that directory. If not, it will output to STDOUT and STDERR
--daemon
Run the server in daemon mode, detaching itself from the console
--version
Display the version and exits
--debuglevel
Sets the debug level for the logs. It overrides the value inside op_server.cfg
DESCRIPTION
This program is a proxy server for the Flash Operator Panel. It reads configuration files and updates the data to display on the panel.
FILES
/etc/op-panel
The configuration files of the operator panel daemon reside in that directory (may differ on other distributions). Those include:
op_server.cfg
The server's configuration file. See remarks in file for documentation.
op_buttons.cfg
Defines the layout of the operator panel, and also which phones to track.
/var/log/op-panel/output.log
The standard output of the daemon, including debugging prints and dumps.
/var/log/op-panel/error.log
The standard error of the daemon. Should normally be empty.
perl v5.10.1 2009-06-22 OP_SERVER(8)