How to Change Uname output?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to Change Uname output?
# 1  
Old 03-31-2008
How to Change Uname output?

I want use fake uname

anyone can guide?
# 2  
Old 03-31-2008
Make your uname and place it to current one.
# 3  
Old 04-01-2008
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  
Old 04-03-2008
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  
Old 04-03-2008
Quote the string you want to echo:

Code:
echo "uname (New Version)"

Regards
# 6  
Old 04-03-2008
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

Smilie
# 7  
Old 04-04-2008
Quote:
Originally Posted by redstaing
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

Smilie
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. Smilie
Try single quotes instead of double quotes.

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

uname -a output

Can anyone please let me know the meaning of output of uname -a ? I am totally new to unix or linux and just thinking to start learning. When I run uname -a the output I get is - "Linux blx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux" I want to... (7 Replies)
Discussion started by: csrohit
7 Replies

2. Shell Programming and Scripting

find output seems to change when piped

Currently, i am trying to create a simple robust script that is intended to move the contents of a given source directory to a target directory. Optionally, the script should allow to either move the whole source dir content, or dotfiles only, or visible files only. I am aware the target directory... (0 Replies)
Discussion started by: shells_bells
0 Replies

3. Shell Programming and Scripting

change the output format

when i run the following command db2 list tablespaces Tablespaces for Current Database Tablespace ID = 0 Name = SYSCATSPACE State = 0x0000 Tablespace ID ... (3 Replies)
Discussion started by: lazydev
3 Replies

4. Shell Programming and Scripting

Change file output format

I have a file which has following contents usmtnz-dinfsi19 62 61 18400 18800 99.7 usmtnz-dinfsi19 62 61 18400 18800 99.7 i want the o/p to be like date (7 Replies)
Discussion started by: fugitive
7 Replies

5. Emergency UNIX and Linux Support

Read file and change a 0 to a 1 in output

<key>ExcludeSimpleHostnames</key> <integer>0</integer> <key>FTPPassive</key> Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key. I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies

6. Shell Programming and Scripting

Change output if file is empty

I'm very new to writing scripts, so here is my problem...I have the following code already written (in perl) system "rm file2"; open(FILE2, ">file2"); open(MYINPUTFILE, "file"); while(<MYINPUTFILE>) { my($line) = $_; chomp($line); print file2 "$line\n"; print... (2 Replies)
Discussion started by: ddrew78
2 Replies

7. Shell Programming and Scripting

change the output

I have a applicaton , when run /tmp/my_script , that will output the result to the screen ( as below ) , the output is very long ( about 1500 lines ) , I have a program ( as below ) that will show the output with function 1 > 1 , it works fine , however , the output only show page 1 of this 1500... (5 Replies)
Discussion started by: ust
5 Replies

8. Shell Programming and Scripting

Hw to change the font of output in perl

Hw to change the font color and size of output in perl (2 Replies)
Discussion started by: trupti_rinku
2 Replies

9. Shell Programming and Scripting

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 :confused: (3 Replies)
Discussion started by: pop_black
3 Replies
Login or Register to Ask a Question