The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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-23-2008 02:19 AM
can someone help me with modifying this file eamani_sun Shell Programming and Scripting 2 05-22-2008 01:15 PM
Need help in modifying the prompt mahatma Shell Programming and Scripting 7 08-02-2006 03:45 AM
modifying my shell nico-hellas Shell Programming and Scripting 1 08-05-2005 09:43 AM
Modifying Route hoang IP Networking 1 06-25-2002 07:55 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-11-2005
Nicol Nicol is offline
Registered User
  
 

Join Date: Sep 2003
Location: Paris
Posts: 128
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 (permalink)  
Old 04-12-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
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 (permalink)  
Old 04-13-2005
Nicol Nicol is offline
Registered User
  
 

Join Date: Sep 2003
Location: Paris
Posts: 128
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0