LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find the TCSH shell and gzip version number? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-tcsh-shell-and-gzip-version-number-800547/)

kailash19 04-07-2010 05:49 AM

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.

carltm 04-07-2010 05:59 AM

Two commands:

tcsh --version
gzip ---version

kailash19 04-07-2010 06:07 AM

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

Nylex 04-07-2010 06:08 AM

In general, you should try the man page for the commands, to see if there's an option to give you the version.

kailash19 04-07-2010 06:14 AM

Yes , i tried the man pages, but i didnt find anything for tcsh.

nonamenobody 04-07-2010 06:42 AM

Quote:

Originally Posted by kailash19 (Post 3927280)
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).


All times are GMT -5. The time now is 04:22 AM.