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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx) (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@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.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux