Sponsored Content
Full Discussion: Determine Unix Version
Top Forums UNIX for Dummies Questions & Answers Determine Unix Version Post 72753 by davegeysemans on Tuesday 24th of May 2005 04:40:07 AM
Old 05-24-2005
Determine Unix Version

Is there a trick to determine the exact version from Unix that one is working with?

I would have expected to see it after logon, but all I get are some Copyright-messages...

I know it's some HP-UX, but I would like to know the version-number

Tnx in advance!
Dave
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cmd to determine my OS version?

I'm looking for a generic (i.e. would be resident in most/all unix flavors) internal command for determining my OS and version. When I telnet to a box here @ work, I get none of that info and can't remember the equivalent of the DOS ver command; I know I used to know this! Thanks. (2 Replies)
Discussion started by: brian.wilson
2 Replies

2. Solaris

Determine LOM version?

Is there a way I can determine the LOM version on a Sun machine without actually shutting the system down? I'm confused. :) (2 Replies)
Discussion started by: sysera
2 Replies

3. Slackware

Determine Linux Version.

Apart from the obvious, uname command, is there anyway to determine which Linux distribution and version of the distribution has been installed? (7 Replies)
Discussion started by: mbb
7 Replies

4. UNIX for Dummies Questions & Answers

how to determine which kind of unix is used

how can i determine which type of unix (solaris ,AIX,HP-UX...) is installed on the machine that i am working? (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies

5. 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

6. UNIX for Dummies Questions & Answers

How to determine if a host is connected to the Internet in Unix?

How to determine if a host is connected to the Internet in Unix ? (1 Reply)
Discussion started by: shuhang2
1 Replies

7. UNIX for Dummies Questions & Answers

How to determine the level of OS in HP-UNIX

How can you determine the level ot the operating system on an HP UNIX System? (2 Replies)
Discussion started by: aschmid
2 Replies

8. Shell Programming and Scripting

Portable Shell Script - Determine Which Version of Binary is Installed?

I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies

9. Shell Programming and Scripting

Using Linux to determine version of Windows

This is an odd question and I didn't really know what category it fits. I just installed Ubuntu 12.10. During the installation process, the screen informed me that Windows 7 was installed in a particular partition. I'm just wondering how this was accomplished. Using 'fdisk -l' will indicate... (1 Reply)
Discussion started by: jamarsh
1 Replies

10. Shell Programming and Scripting

To determine the File Sytem Usage on Multiple UNIX server

Hello All :) I want to write a shell script to find the file system usage on multiple UNIX servers. Commands: df -g fsJCAPS Below script works fine and it displays results on terminal/console. I want to store /redirect output on to local server from where I'm running the script. ... (3 Replies)
Discussion started by: Mohammad Nawaz
3 Replies
DateTime::TimeZone::Local(3)				User Contributed Perl Documentation			      DateTime::TimeZone::Local(3)

NAME
DateTime::TimeZone::Local - Determine the local system's time zone VERSION
version 1.63 SYNOPSIS
my $tz = DateTime::TimeZone->new( name => 'local' ); my $tz = DateTime::TimeZone::Local->TimeZone(); DESCRIPTION
This module provides an interface for determining the local system's time zone. Most of the functionality for doing this is in OS-specific subclasses. USAGE
This class provides the following methods: DateTime::TimeZone::Local->TimeZone() This attempts to load an appropriate subclass and asks it to find the local time zone. This method is called by when you pass "local" as the time zone name to "DateTime:TimeZone->new()". If your OS is not explicitly handled, you can create a module with a name of the form "DateTime::TimeZone::Local::$^O". If it exists, it will be used instead of falling back to the Unix subclass. If no OS-specific module exists, we fall back to using the Unix subclass. See DateTime::TimeZone::Local::Unix, DateTime::TimeZone::Local::Win32, and DateTime::TimeZone::Local::VMS for OS-specific details. SUBCLASSING
If you want to make a new OS-specific subclass, there are several methods provided by this module you should know about. $class->Methods() This method should be provided by your class. It should provide a list of methods that will be called to try to determine the local time zone. Each of these methods is expected to return a new "DateTime::TimeZone" object if it determines the time zone. $class->FromEnv() This method tries to find a valid time zone in an %ENV value. It calls "$class->EnvVars()" to determine which keys to look at. To use this from a subclass, simply return "FromEnv" as one of the items from "$class->Methods()". $class->EnvVars() This method should be provided by your subclass. It should return a list of env vars to be checked by "$class->FromEnv()". $class->_IsValidName($name) Given a possible time zone name, this returns a boolean indicating whether or not the name looks valid. It always return false for "local" in order to avoid infinite loops. EXAMPLE SUBCLASS
Here is a simple example subclass: package DateTime::TimeZone::SomeOS; use strict; use warnings; use base 'DateTime::TimeZone::Local'; sub Methods { qw( FromEnv FromEther ) } sub EnvVars { qw( TZ ZONE ) } sub FromEther { my $class = shift; ... } AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Dave Rolsky. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2013-10-28 DateTime::TimeZone::Local(3)
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy