From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daniel (Youngwhan)" Newsgroups: gmane.emacs.help Subject: Reading OS Version and decide what to do? Date: Thu, 24 May 2012 10:25:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <32b2aaad-e3e1-42fe-a4e2-8316536c1fde@f9g2000pbd.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1337880617 12010 80.91.229.3 (24 May 2012 17:30:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 May 2012 17:30:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 19:30:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SXbrZ-0006Lk-Ay for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 19:30:13 +0200 Original-Received: from localhost ([::1]:49219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXbrY-000447-UV for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2012 13:30:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!f9g2000pbd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 128.107.138.70 Original-X-Trace: posting.google.com 1337880439 4124 127.0.0.1 (24 May 2012 17:27:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 24 May 2012 17:27:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f9g2000pbd.googlegroups.com; posting-host=128.107.138.70; posting-account=1n6WnAoAAACbXH3nD5I7RQWqdkbTxZki User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:192551 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84956 Archived-At: Hi, I have no knowledge about Emacs LISP, but is there any way to get what os version is being used? For example, on linux and bash and external utility like cut, I can get the os version by "uname -r" and get what I want by using cut utility. Is there a way to simulate like that in Emacs LISP? like launching external process like "cut" or "uname -r" and get a string and if the string matches what I want, do something and otherwise, do others? Daniel