The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Modifying a variable value kartikkumar84@g UNIX for Dummies Questions & Answers 6 05-22-2008 11:19 PM
can someone help me with modifying this file eamani_sun Shell Programming and Scripting 2 05-22-2008 10:15 AM
Need help in modifying the prompt mahatma Shell Programming and Scripting 7 08-02-2006 12:45 AM
modifying my shell nico-hellas Shell Programming and Scripting 1 08-05-2005 06:43 AM
Modifying Route hoang IP Networking 1 06-25-2002 04:55 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2005
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Stumble this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-12-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
Stumble this Post!
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 ...
Reply With Quote
  #3 (permalink)  
Old 04-13-2005
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Stumble this Post!
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0