Sponsored Content
Operating Systems Solaris How to check version of Solaris? Post 302164529 by ghostdog74 on Tuesday 5th of February 2008 06:06:58 AM
Old 02-05-2008
Quote:
Originally Posted by am_yadav
Hi All,

Looks a foolish question, but please can someone tell me the command to check version of Solaris OS ?

Thanks,
Am
try uname -a.
 

10 More Discussions You Might Find Interesting

1. Programming

to check version to library

how to check the version of Library version of Program & version of file. while compile pro*c program, I got error like elf error: no string table if u have any suggestion then give me urgently. (1 Reply)
Discussion started by: dilipluhar
1 Replies

2. Solaris

Check version of Oracle

Hi All, Please advice me how i can check the Oracle version on my UNIX Solaris machine without logging in to oracle? Thanks, Am (1 Reply)
Discussion started by: am_yadav
1 Replies

3. Shell Programming and Scripting

Check for the bit version of OS

Hi , Is there a command that i can use to check the bit version of the OS. I have a script that i need to run on all the unix flavors so how do i check for the condition say something like this if( 32 bit) { execute this } else { execute this (4 Replies)
Discussion started by: tcsprak
4 Replies

4. Solaris

Command to check firmware version

Command to check firmware version of HP x86 server on which solaris installed. I m not getting version by using prtdiag -v command (1 Reply)
Discussion started by: sunray
1 Replies

5. Shell Programming and Scripting

Check on the files expected to be of single version

I need to put a check for the files that are expected to come from source as single version but if they are coming in multiple version, i need to fail the job.also .from the soource some multiple files ll be coming that are required. e.g.5 files are coming from source. aaa bbb ccc ddd eee... (4 Replies)
Discussion started by: amitpta
4 Replies

6. Red Hat

How to check the running snmp version in Rhel?

Hi, Please help me to understand how to check which snmp vesion(1, 2, 3) is configured on my rhel5 server. Regards, Aravind :) (2 Replies)
Discussion started by: arumon
2 Replies

7. Solaris

How to check SVM version Solaris 9 and 10?

How to check Solaris Volume Manager Version in 9 & 10? Which are the packages that are installed in the SVM? (1 Reply)
Discussion started by: ajhal04
1 Replies

8. Solaris

How to read this Solaris version:-Solaris 8 HW 5/03 s28s_hw2wos_06a SPARC?

Hi Guys, Could you please tell me how to read this Solaris version:- Solaris 8 HW 5/03 s28s_hw2wos_06a SPARC Thanks. (3 Replies)
Discussion started by: manalisharmabe
3 Replies

9. HP-UX

How to check Oracle version on HP-UNIX?

Dear Gurus, I am totally new to HP-UNIX. Can you please help me that how can i check the detail version of Oracle on HP-UNIX. My administrator give me command for linux as below. select * from v$version; (Login to the database using Sql*Plus and connect as Sys user.) Please see... (3 Replies)
Discussion started by: imtiaza
3 Replies

10. UNIX for Beginners Questions & Answers

How to check tar version in Solaris?

for pkg in `pkginfo | grep tar | grep application | awk '{print $2}'`; do pkginfo -l $pkg | grep VERSION; done Please use CODE tags as required by forum rules! (2 Replies)
Discussion started by: svijayas
2 Replies
SHELL-QUOTE(1)						User Contributed Perl Documentation					    SHELL-QUOTE(1)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.16.3 2010-06-11 SHELL-QUOTE(1)
All times are GMT -4. The time now is 03:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy