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

Tim ignored_mailbox at yahoo.com.au
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 2.6.33.5-124.fc13.i686.PAE 
> (mockbuild at x86-11.phx2.fedoraproject.org) (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 2.6.27.25-78.2.56.fc9.i686 (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
2.6.27.25-78.2.56.fc9.i686

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