modifying the writing of a log...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting modifying the writing of a log...
# 1  
Old 04-11-2005
modifying the writing of a log...

Hi ,

i would submit the following way of writing into a log :

i'm using Lotus Notes under AIX and a lotus system script is writing the all notes log this way :

11/04/2005 15:34:36 Router: Message 00496E70 transferred to
XHUB003A/SRV/EDFGDF/FR for xxx@yyyyyy.com via Notes
11/04/2005 15:34:36 Pushing mail/mail-06/ddddd.nsf to TCP-A
MSG302B/SRV/EDFGDF/FR mail\mail-06\dddd.nsf
11/04/2005 1

and so on

i dont why the writing is done on 2 and sometimes 3 lines , we have a carriage return about 50 characters.

I would have each line beginning with the date (french format).
1 Is it a Unix environment problem or terminal reason ?
2 If not is there a simple way to do this ?

thanks in advance

Christian
# 2  
Old 04-12-2005
is it only this lotus system script that is logging this way? how about the other lotus system scripts? and how about the normal shell (i.e., sh, csh, ksh, etc.) scripts? do any of them log this way? i'm suspecting it is specific to the lotus system script in question but only you can confirm whether it is or not ...
# 3  
Old 04-13-2005
Well , i think this is the only lotus script that writes this way.

Concerning the shell , it is ksh and i have many of scripts which write in logs without any problems.

the command is :
${LOTUSDIR}/bin/server < ${COMMANDES} > ${CONSOLE} 2>&1 &

where "server" is running Lotus Notes server , COMMANDES : we can enter commands in console mode and the all output is written in CONSOLE , the one with the strange format !

Christian
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Writing script to log

Hi, I have a shell script which contains echo 'hello' >> $logfile while executing my script i want the hello should be written in log file and also hello should be printed. Thanks in Advance (4 Replies)
Discussion started by: pracheth
4 Replies

2. Shell Programming and Scripting

Writing the output of set -x into Log files

Hi Guys, I am using set -x in my script to track the flow of the script. But if i want to write the output of the set -x into a log file, how do i do it? Thanks, Ajay (3 Replies)
Discussion started by: Ajay Venkatesan
3 Replies

3. HP-UX

HP-UX real time audit log writing

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

4. UNIX for Dummies Questions & Answers

crond not work after writing to cron log?

Yesterday I was testing out some cron commands and when i was check the /var/log/cron with vi editor I accidentally did :wq instead. Since then the log has not updated and I'm assuming no cronjob is running because looking at the log there's activities everyday there's some default stuff that... (5 Replies)
Discussion started by: orionoreo
5 Replies

5. Shell Programming and Scripting

How to check if a script is writing to a log

Hello, I have various scripts that writes to logs ( >> ) in different directories. I have create a script to automatically check different direcories for different errrors. However I do not want to remove logs if a script is still writing to a log. Is the log file opened for writing when the... (7 Replies)
Discussion started by: drbiloukos
7 Replies

6. Shell Programming and Scripting

Help writing a script check log not update.

:wall:Dear All.:p How to check log size every 10min. by script (not crontab) if log size not change with alert "Log not update" My Path :: /usr/home/logical/mono/log/tplink/ My Log :: mono11_tplink.log , mono12_tplink.log , etc I want oup put. EX. if log not update. . . . Fri Jan ... (1 Reply)
Discussion started by: ooilinlove
1 Replies

7. UNIX for Dummies Questions & Answers

Log File Writing and Reading

Hi all, I have the following shell script code which tries to sftp and writes the log into the log file. TestConnection () { echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME $SETDEBUG if ]; then rm $SCRIPT ; fi touch $SCRIPT echo "cd" $REMOTEDIR >> $SCRIPT echo "quit" >>... (10 Replies)
Discussion started by: valluvan
10 Replies

8. UNIX for Advanced & Expert Users

writing the log file into syslog

Hi, we are trying to enable auditing for few oracle 9i database. and right now it writies into adump directory. As adump can be read/write by oracle user so could it be possible to write into syslog while oracle keeps writing to adump . thanks in advance. Pk (2 Replies)
Discussion started by: p4cldba
2 Replies

9. Shell Programming and Scripting

Writing to a log file incorrectly

I have this script: #!/bin/ksh ######### Environment Setup ######### PATH=/gers/nurev/menu/pub/sbin:/gers/nurev/menu/pub/bin:/gers/nurev/menu/pub/mac :/gers/nurev/menu/adm/sbin:/gers/nurev/menu/adm/bin:/gers/nurev/menu/adm/mac:/ge... (5 Replies)
Discussion started by: heprox
5 Replies

10. Shell Programming and Scripting

Which Process is writing this Log file!!

Hello , Well I have some /tmp files which are growing very quickly..Can anyone suggest me a way to find which process is logging into this file :confused: ? Thanks very much in Advance!! Mohammed (2 Replies)
Discussion started by: Mohammed
2 Replies
Login or Register to Ask a Question