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
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
How to Change Uname output? pop_black Shell Programming and Scripting 3 09-12-2006 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-31-2008
redstaing redstaing is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 4
How to Change Uname output?

I want use fake uname

anyone can guide?
  #2 (permalink)  
Old 03-31-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
Make your uname and place it to current one.
  #3 (permalink)  
Old 04-01-2008
preyan preyan is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 8
uname

One thing is that u could set an alias to the uname command, or else create your executable to call your desired uname and put it in any of your directories found in your path,after renaming the actual executable to something like uname_act.
  #4 (permalink)  
Old 04-03-2008
redstaing redstaing is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 4
shell-programming-scripting

Thx you for answer i have try to do a
shell-programming-scripting

but iam geting errors line 2: syntax error near unexpected token `('

#!/bin/sh

echo Uname (New Version)

/bin/uname.orig
  #5 (permalink)  
Old 04-03-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,212
Quote the string you want to echo:

Code:
echo "uname (New Version)"
Regards
  #6 (permalink)  
Old 04-03-2008
redstaing redstaing is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 4
Thc

Thx you for answer iam stilling geting the erros

1.sh: line 2: syntax error near unexpected token `('
'.sh: line 2: `

can you plz writ for me the programming in sh files and Attach it

  #7 (permalink)  
Old 04-04-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,212
Quote:
Originally Posted by redstaing View Post
Thx you for answer iam stilling geting the erros

1.sh: line 2: syntax error near unexpected token `('
'.sh: line 2: `

can you plz writ for me the programming in sh files and Attach it

We want to help you if you have shown that you have put some effort into solving your problem but not to do your work for you.
Try single quotes instead of double quotes.

Regards
Sponsored Links
Closed Thread

Bookmarks

Tags
solaris

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 09:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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