LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2010, 06:49 AM   #1
kailash19
LQ Newbie
 
Registered: Apr 2010
Location: Pune
Posts: 13

Rep: Reputation: 0
How to find the TCSH shell and gzip version number?


Hi,

I need to find TCSH shell and gzip version number by running a acript on several boxes through ssh.
How can i do that?
I made a script for tcsh but it is not working by ssh , it only works on my box .
I dont know from where to find the gzip version info. Can anyone please help.
 
Old 04-07-2010, 06:59 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Two commands:

tcsh --version
gzip ---version
 
Old 04-07-2010, 07:07 AM   #3
kailash19
LQ Newbie
 
Registered: Apr 2010
Location: Pune
Posts: 13

Original Poster
Rep: Reputation: 0
sorry , it was not gzip, it was zlib, my bad.

For tcsh :

tcsh --version not runnign on my hp-ux.

tcsh --version
Unknown option: `--version'
Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ].
 
Old 04-07-2010, 07:08 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
In general, you should try the man page for the commands, to see if there's an option to give you the version.
 
Old 04-07-2010, 07:14 AM   #5
kailash19
LQ Newbie
 
Registered: Apr 2010
Location: Pune
Posts: 13

Original Poster
Rep: Reputation: 0
Yes , i tried the man pages, but i didnt find anything for tcsh.
 
Old 04-07-2010, 07:42 AM   #6
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by kailash19 View Post
Yes , i tried the man pages, but i didnt find anything for tcsh.
I managed to find a manpage online for an HP-UX version of tcsh, and it made no reference to --version (or any other command for getting the version). It is entirely possible that the HP-UX port of tcsh doesn't provide any way of reporting its version number. Perhaps there is some other way that HP-UX provides for finding out version numbers of installed software?

Unfortunately, only someone who is familiar with HP-UX or has access to an HP-UX machine can tell you for certain. Perhaps HP-UX's package manager can help you, if tcsh was installed by the package manager.

There is always the possibility that tcsh is a symlink to tcsh-x.y.z I suppose

BTW HP-UX questions are bit of a stretch of the term 'linux-newbie' You have to bear in mind that "Linux is not UNIX". If you were to take the the two most different Linux distributions, and multiply the number of differences by 20, that would likely give you an idea of how different Linux is from HP-UX (and how different each of the major Unices are from each other).

Last edited by nonamenobody; 04-07-2010 at 07:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find given number is integer or not in shell script kvmreddy Linux - Newbie 2 08-15-2009 09:05 AM
[Solaris 9] find package version number noir911 Solaris / OpenSolaris 5 08-15-2008 06:00 AM
[Suse] find version number noir911 SUSE / openSUSE 1 08-04-2006 11:35 PM
shell command to find the number of collisions of NICs RajRed Linux - Newbie 14 04-19-2006 02:20 PM
Is there a good way to find the OS version number? BrianK Linux - General 6 10-06-2004 11:54 PM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration