The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Change Uname output? redstaing Shell Programming and Scripting 9 04-07-2008 10:31 PM
Uname Dileepsp Linux 2 12-21-2007 07:54 AM
change the output ust Shell Programming and Scripting 5 11-29-2007 10:48 AM
uname -S habuzahra AIX 2 01-25-2007 06:52 AM
Hw to change the font of output in perl trupti_rinku Shell Programming and Scripting 2 11-14-2006 10:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 09-11-2006
pop_black pop_black is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 2
How to Change Uname output?

I want replace 2.6.15-25-server with 2.6.17 ?
$uname -r
2.6.15-25-server

1) mv /bin/uname /bin/uname.orig
2) put the following in the new /bin/uname:
#!/bin/sh
echo Uname (New Version)
/bin/uname.orig
  #2 (permalink)  
Old 09-11-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
pop_black, uname -r prints the release level of your operating system. If you want to change the output of that command, you should be upgrading your system. Just replacing the uname command does not achieve anything.
  #3 (permalink)  
Old 09-12-2006
pop_black pop_black is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 2
I want use fake uname
anyone can guide?
  #4 (permalink)  
Old 09-12-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,114
Quote:
Originally Posted by pop_black
I want use fake uname
anyone can guide?
You basicly provided the answer in your first post. Replace the uname command with your own script.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0