log files


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers log files
# 1  
Old 08-30-2007
log files

I have a incoming print stream from a Open Vms server that I need to redirect to a log file. The print stream comes in via a IP address and port onto the Unix server. Does anyone know the command and syntax that I will need to use to achieve this?

Thanks

Last edited by shepheri; 08-30-2007 at 11:12 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Redirecting log files to null writing junk into log files

Redirecting log files to null writing junk into log files. i have log files which created from below command exec <processname> >$logfile but when it reaches some size i am redirecting to null while process is running like >$logfile manually but after that it writes some junk into... (7 Replies)
Discussion started by: greenworld123
7 Replies

2. Shell Programming and Scripting

Monitor log entries in log files with no Date format? - Efficient logcheck?

is there a way to efficiently monitor logfiles that do not have a date or time format? i have several logs on several different servers that need to be monitored. but i realized writing a script for this would be very complex and time consuming giving the variety of things i need to check for i.e.... (2 Replies)
Discussion started by: SkySmart
2 Replies

3. Shell Programming and Scripting

Delete log files content older than 30 days and append the lastest date log file date

To delete log files content older than 30 days and append the lastest date log file date in the respective logs I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs This is my script cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies

4. Shell Programming and Scripting

auto encryption and decryption of files during log in and log off

we r to develope a project which involves automatic encryption of all the text files user was working upon during logg off and to decrypt them during log on this is to be done by writing a shell script can anyone help (2 Replies)
Discussion started by: vyom
2 Replies

5. Shell Programming and Scripting

How can view log messages between two time frame from /var/log/message or any type of log files

How can view log messages between two time frame from /var/log/message or any type of log files. when logfiles are very big and especially many messages with in few minutes, I would like to display log messages between 5 minute interval. Could you pls give me the command? (1 Reply)
Discussion started by: johnveslin
1 Replies

6. Shell Programming and Scripting

gz log files

Hello, i got the bunch of files, with following extention *.log.* eg: test.log.2009-01-01 i want them to be gz as test.log.2009-01-01.gz and delete the src files on /home/capture can some one help me with creating the shell script. (1 Reply)
Discussion started by: boomramada
1 Replies

7. UNIX for Dummies Questions & Answers

Log files

hi, can anybody tell me what are the log files availablr in unix? (4 Replies)
Discussion started by: palash2k
4 Replies

8. Solaris

Log Files

Dear all ! My Sun workstation shut down immideately because of power off. How can I see the log file to know exactly ! Thaks (2 Replies)
Discussion started by: iwbasts
2 Replies

9. AIX

Log files...

hi.. Where can i find the major logfiles in AIX 5.3 and which all log files should be cleared periodically?? Bala (5 Replies)
Discussion started by: balaji_prk
5 Replies

10. UNIX for Dummies Questions & Answers

system log files and core files?

Solaris v5.6 What log files should be checked out as part of your sys admin daily routine? I've printed out my syslog.conf file, and looked in /var/log and found authlog, syslog, and POPlog. I know of /var/adm/messages. What others should I be looking for? I know of the "find" command. I... (8 Replies)
Discussion started by: Westy564
8 Replies
Login or Register to Ask a Question
PG_RECEIVEXLOG(1)					  PostgreSQL 9.2.7 Documentation					 PG_RECEIVEXLOG(1)

NAME
pg_receivexlog - streams transaction logs from a PostgreSQL cluster SYNOPSIS
pg_receivexlog [option...] DESCRIPTION
pg_receivexlog is used to stream transaction log from a running PostgreSQL cluster. The transaction log is streamed using the streaming replication protocol, and is written to a local directory of files. This directory can be used as the archive location for doing a restore using point-in-time recovery (see Section 24.3, "Continuous Archiving and Point-in-Time Recovery (PITR)", in the documentation). pg_receivexlog streams the transaction log in real time as it's being generated on the server, and does not wait for segments to complete like archive_command does. For this reason, it is not necessary to set archive_timeout when using pg_receivexlog. The transaction log is streamed over a regular PostgreSQL connection, and uses the replication protocol. The connection must be made with a superuser or a user having REPLICATION permissions (see Section 20.2, "Role Attributes", in the documentation), and pg_hba.conf must explicitly permit the replication connection. The server must also be configured with max_wal_senders set high enough to leave at least one session available for the stream. If the connection is lost, or if it cannot be initially established, with a non-fatal error, pg_receivexlog will retry the connection indefinitely, and reestablish streaming as soon as possible. To avoid this behavior, use the -n parameter. OPTIONS
The following command-line options control the location and format of the output. -D directory, --directory=directory Directory to write the output to. This parameter is required. The following command-line options control the running of the program. -n, --no-loop Don't loop on connection errors. Instead, exit right away with an error. -v, --verbose Enables verbose mode. The following command-line options control the database connection parameters. -h host, --host=host Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket. The default is taken from the PGHOST environment variable, if set, else a Unix domain socket connection is attempted. -p port, --port=port Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections. Defaults to the PGPORT environment variable, if set, or a compiled-in default. -s interval, --status-interval=interval Specifies the number of seconds between status packets sent back to the server. This is required if replication timeout is configured on the server, and allows for easier monitoring. A value of zero disables the status updates completely. The default value is 10 seconds. -U username, --username=username User name to connect as. -w, --no-password Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt will fail. This option can be useful in batch jobs and scripts where no user is present to enter a password. -W, --password Force pg_receivexlog to prompt for a password before connecting to a database. This option is never essential, since pg_receivexlog will automatically prompt for a password if the server demands password authentication. However, pg_receivexlog will waste a connection attempt finding out that the server wants a password. In some cases it is worth typing -W to avoid the extra connection attempt. Other options are also available: -V, --version Print the pg_receivexlog version and exit. -?, --help Show help about pg_receivexlog command line arguments, and exit. ENVIRONMENT
This utility, like most other PostgreSQL utilities, uses the environment variables supported by libpq (see Section 31.14, "Environment Variables", in the documentation). NOTES
When using pg_receivexlog instead of archive_command, the server will continue to recycle transaction log files even if the backups are not properly archived, since there is no command that fails. This can be worked around by having an archive_command that fails when the file has not been properly archived yet, for example: archive_command = 'sleep 5 && test -f /mnt/server/archivedir/%f' The initial timeout is necessary because pg_receivexlog works using asynchronous replication and can therefore be slightly behind the master. EXAMPLES
To stream the transaction log from the server at mydbserver and store it in the local directory /usr/local/pgsql/archive: $ pg_receivexlog -h mydbserver -D /usr/local/pgsql/archive SEE ALSO
pg_basebackup(1) PostgreSQL 9.2.7 2014-02-17 PG_RECEIVEXLOG(1)