log4j - my unix version


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers log4j - my unix version
# 1  
Old 07-28-2010
log4j - my unix version

Hi,

I am starting to do a log4j framework but with unix shell script. So, this framework, will create the log file, will put all info in there, and will close the log file.
He will only work whenever he is called by the father script.
Now, I want him to be able to work with different father scripts at the same time.
But since the father script will only pass the log type, how can I know on which log file should he write?

I don't know if I make myself understood.

Thanks,

Pipoca
# 2  
Old 07-28-2010
Do you mean something like log4sh?
This User Gave Thanks to pludi For This Post:
# 3  
Old 07-29-2010
Yeah....something like that.... Smilie
Have you ever used that?

---------- Post updated at 03:02 AM ---------- Previous update was at 01:45 AM ----------

Hey,it doesn't support bash shell... Smilie
# 4  
Old 07-29-2010
Read the site again (emphasis added):
Quote:
Tested Shells
  • Bourne Shell (sh)
  • BASH - GNU Bourne Again SHell (bash)
  • DASH (dash)
  • Korn Shell (ksh)
  • pdksh - the Public Domain Korn Shell (pdksh)
This User Gave Thanks to pludi For This Post:
# 5  
Old 07-29-2010
I didn't saw that. I went to the html.

Thanks,

Pipoca

---------- Post updated at 07:34 AM ---------- Previous update was at 05:51 AM ----------

Hi Pudi,

can I ask you one question? To use this tool I only need the log4sh script, no? Our I need the other's files also?

Thanks,

Pipoca
# 6  
Old 07-29-2010
Probably you'll only need the log4sh file. At least I didn't see anything to the contrary in the documentation when I skimmed it.
This User Gave Thanks to pludi For This Post:
# 7  
Old 07-29-2010
You're the man.....thanks a lot....really thanks....

Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Log4j combining lines to single line

Hi, Our log4j file contents look like this: 2018-11-20T00:06:58,888 INFO ql.Driver: Executing command(queryId=hive_20181120000656_49af4ad0-1d37-4312-872c-a247ed80c181): CREATE TABLE RESULTS.E7014485_ALL_HMS_CAP1 AS SELECT name,dept from employee Where employee='Jeff'... (4 Replies)
Discussion started by: wahi80
4 Replies

2. Shell Programming and Scripting

Change values in Log4j.xml using ksh script

Hi, I am new to UNIX and shell scripting. I have to create a shell script(ksh) which parses log4j.xml file for a given webservice name and change the corresponding value from INFO to DEBUG or vice-versa. My log4j.xml looks like:- <!-- Appender WEBSERVICENAME--> <appender... (3 Replies)
Discussion started by: sanjeevcseng
3 Replies

3. Solaris

Migrate unix version 8 to version 9

i have a program writing in PRO C which currently running in unix version 8 tie with oracle 8i, but in the future company gonna migrate this OS to version 9. Anything i have to prepare for my PRO C program to run in unix version 9? or anything would that impact my program couldn't run well? what... (2 Replies)
Discussion started by: lsy
2 Replies

4. UNIX for Dummies Questions & Answers

Log4j overwriting logs! ..sometimes...

Hey, hoping someone here can help me. I'm using log4j for logging in a Java server. Its using DailyRollingFileAppender and rolls every hour. The reason I'm posting here is that in windows it works fine, but in unix it doesnt. What happens is the logs are logged in a file, lets say 'requests'.... (1 Reply)
Discussion started by: .Chris.
1 Replies

5. UNIX for Dummies Questions & Answers

Which version of UNIX I'm using?

Hello- I know it's UNIX-HP, but I don't know what version. Is there a command that tells me what version I'm running or a file that I need to open to get this information? Thanks, Nomaad (1 Reply)
Discussion started by: Nomaad
1 Replies

6. UNIX for Dummies Questions & Answers

UNIX Version

Please post me a command, About how to find UNIX version on our machine. i have tried > WHICH Version it didn't worked though. (2 Replies)
Discussion started by: Kzar
2 Replies

7. UNIX for Dummies Questions & Answers

Unix Version of old?!

Hullo Unix fans. Hoping one of you might be able to give me an indication here... 7 years ago, I was responsible for managing a windows 95 network with a unix server. Problem is I'll be buggered if I can recall what version of unix it was. Can anyone tell me what the standard version of the time... (2 Replies)
Discussion started by: k-lye
2 Replies

8. Where do I download LINUX & UNIX?

What version of Unix do you use most often?

Just curious... (1 Reply)
Discussion started by: PxT
1 Replies

9. UNIX for Dummies Questions & Answers

Which unix version...

I pulled out my old 386 from the garage and dusted it off, and now i want to install unix on it. The 386 however only has a 104mb HD, and has NO cd rom support. Which if any version of unix would best suite this box? Is installing with floppies my only option? (8 Replies)
Discussion started by: nefarious
8 Replies
Login or Register to Ask a Question