more on identifying the system a program is running on...

Tim ignored_mailbox at
Fri Jul 2 02:27:45 UTC 2010

On Thu, 2010-07-01 at 17:02 +0100, Frank Murphy wrote:
> My mistake:
> $ cd /proc |cat version
> Linux version 
> (mockbuild at (gcc version 4.4.4 20100503 
> (Red Hat 4.4.4-2) (GCC) ) #1 SMP Fri Jun 11 09:42:24 UTC 2010

I still don't see how you're getting that to work.  If you had ; instead
of | between the commands, then I could see it working.

$ cd /proc ;cat version
Linux version (mockbuild@) (gcc version 4.3.0
20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Thu Jun 18 12:47:50 EDT 2009

But it still seems like far more messing around than's needed.  If you
want to read that file, simply do so.

i.e. cat /proc/version

I see no point in changing the current working directory to /proc.

[tim at localhost ~]$ uname -r

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.

More information about the users mailing list