Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unix and Linuz - still dont get the difference Post 302109327 by rhfrommn on Monday 5th of March 2007 11:49:25 AM
Old 03-05-2007
One other comment, your statement "I just need one program I assume" is 100% wrong. Unix and Linux are both entire operating systems, not just one program.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between UNIX operating system and Unix Open Server

Hi, I recently joined this forum and new to UNIX. Is there any difference between UNIX operating system and UNIX open server? Please explain. (1 Reply)
Discussion started by: Manjit
1 Replies

2. UNIX for Dummies Questions & Answers

difference between unix and linux?

Ok, I'm confused. Can someone answer these (stupid) questions please for me? 1. What is the difference between unix and linux? 2. Is FreeBSD a unix distribution? 3. If not, then what is Unix? I actually gone to Unix.com because I thought this is it's official website where I could download... (1 Reply)
Discussion started by: RellioN
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between UNIX and Linux

OK, I've used various versions of UNIX(Solaris, HPUX, etc..) over the years. Now the organization I work for is leaning towards more Linux based systems(Redhat, Suse, etc..) I do see differences in in comands and how to accomplish basic adminstration, but nothing mind blowing. So, what is it... (5 Replies)
Discussion started by: pbonilla
5 Replies

4. UNIX for Dummies Questions & Answers

Unix difference

Hi, What is the difference between the following unix ie.. Linux-unix, HP-Unix, AIX, Solaris Unix... whether commands used in all unix are same? and which one is best?..... (2 Replies)
Discussion started by: gwgreen1
2 Replies

5. Shell Programming and Scripting

Difference Between 2 files in UNIX

Hi, I am having files in the below format $ cat a.txt 1, abc, 1234 2, bcd, 2345 $ cat b.txt 1, bcd, 2345 2, cde, 3456 and I want to display only what is not exists in a.txt through UNIX script. like 2, cde, 3456 Please advice me. (1 Reply)
Discussion started by: Alex_Smith
1 Replies

6. UNIX for Dummies Questions & Answers

difference between unix and linux

Hi I am new to linux I have dout waht is the difference between UNIX and LINUX Is there any soft for insatallation for UNIX OS Thanks (0 Replies)
Discussion started by: sanjaya
0 Replies

7. UNIX for Dummies Questions & Answers

Difference between UNIX and Linux

hi experts please tell me the real difference between unix and linux at kernel structure (1 Reply)
Discussion started by: linurag
1 Replies

8. UNIX for Dummies Questions & Answers

Call a UNIX script inside another and dont wait for it

Hi I have two scripts script1.sh and script2.sh(say this script is a long running). I want to call script2.sh inside and script1.sh,but when i call script2.sh i dont want to wait for script2 to complete and want this to run in back ground and go on next commands in script 1.sh and finally at the... (2 Replies)
Discussion started by: lijjumathew
2 Replies

9. Shell Programming and Scripting

Need Help on simple script as i dont know numch about UNIX scripting

Hello All, My name is vasu and I am very new to Unix scripting, i know basic commands, but now i need to write the following script, i have tried but no luck My requirment is i am getting one our from another command as following Used:1.8TB Advisory Quota:1.8TB aaa1 Used:4.5TB Advisory... (1 Reply)
Discussion started by: VasuKukkapalli
1 Replies
Parse::Syslog(3pm)					User Contributed Perl Documentation					Parse::Syslog(3pm)

NAME
Parse::Syslog - Parse Unix syslog files SYNOPSIS
my $parser = Parse::Syslog->new( '/var/log/syslog', year => 2001); while(my $sl = $parser->next) { ... access $sl->{timestamp|host|program|pid|text} ... } DESCRIPTION
Unix syslogs are convenient to read for humans but because of small differences between operating systems and things like 'last message repeated xx times' not very easy to parse by a script. Parse::Syslog presents a simple interface to parse syslog files: you create a parser on a file (with new) and call next to get one line at a time with Unix-timestamp, host, program, pid and text returned in a hash-reference. Constructing a Parser new requires as first argument a source from where to get the syslog lines. It can be: o a file-name for the syslog-file to be parsed. o an IO::Handle object. o a File::Tail object as first argument, in which case the read method will be called to get lines to process. After the file-name (or File::Tail object), you can specify options as a hash. The following options are defined: type Format of the "syslog" file. Can be one of: syslog Traditional "syslog" (default) metalog Metalog (see http://metalog.sourceforge.net/) year Syslog files usually do store the time of the event without year. With this option you can specify the start-year of this log. If not specified, it will be set to the current year. GMT If this option is set, the time in the syslog will be converted assuming it is GMT time instead of local time. repeat Parse::Syslog will by default repeat xx times events that are followed by messages like 'last message repeated xx times'. If you set this option to false, it won't do that. arrayref If this option is true, next will return an array-ref instead of a hash-ref (and is thus a bit faster), with the following contents: 0: timestamp 1: host 2: program 3: pid 4: text locale Optional. Specifies an additional locale name or the array of locale names for the parsing of log files with national characters. allow_future If true will allow for timestamps in the future. Otherwise timestamps of one day in the future and more will not be returned (as a safety measure against wrong configurations, bogus --year arguments, etc.) Parsing the file The file is parse one line at a time by calling the next method, which returns a hash-reference containing the following keys: timestamp Unix timestamp for the event. host Host-name where the event did happen. program Program-name of the program that generated the event. pid PID of the Program that generated the event. This information is not always available for every operating system. text Text description of the event. msgid Message numeric identifier, available only on Solaris >= 8 with "message ID generation" enabled". facility Log facility name, available only on Solaris >= 8 with "message ID generation" enabled". level Log level, available only on Solaris >= 8 with "message ID generation" enabled". BUGS There are many small differences in the syslog syntax between operating systems. This module has been tested for syslog files produced by the following operating systems: Debian GNU/Linux 2.4 (sid) Solaris 2.6 Solaris 8 Report problems for these and other operating systems to the author. COPYRIGHT
Copyright (c) 2001, Swiss Federal Institute of Technology, Zurich. All Rights Reserved. LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
David Schweikert <dws@ee.ethz.ch> HISTORY
2001-08-12 ds 0.01 first version 2001-08-19 ds 0.02 fix 'last message repeated xx times', Solaris 8 problems 2001-08-20 ds 0.03 implemented GMT option, year specification, File::Tail 2001-10-31 ds 0.04 faster time parsing, implemented 'arrayref' option, better time-increment algorithm 2002-01-29 ds 0.05 ignore -- MARK -- lines, low-case months, space in program names 2002-05-02 ds 1.00 HP-UX fixes, parse 'above message repeats xx times' 2002-05-25 ds 1.01 added support for localized month names (uchum@mail.ru) 2002-10-28 ds 1.02 fix off-by-one-hour error when running during daylight saving time switch 2004-01-19 ds 1.03 do not allow future dates (if allow_future is not true) 2004-07-11 ds 1.04 added support for type 'metalog' 2005-12-24 ds 1.05 allow passing of a IO::Handle object to new perl v5.12.3 2007-12-30 Parse::Syslog(3pm)
All times are GMT -4. The time now is 06:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy