LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 09-26-2013, 11:39 AM   #1
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Rep: Reputation: Disabled
traceroute script printing on the shell itself while executing


Hi,

I have written the bash script fot traceroute ,but when executing the script ,it printing like
traceroute from ip to ip ,in the cmp prompt itself ,i tried taking this output to variable ,but same thing happening,how to avoid this line?pla anyone help me.
 
Old 09-26-2013, 12:04 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,994
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Quote:
Originally Posted by senthil4984 View Post
I have written the bash script fot traceroute ,but
Post the actual complete script? (in vBB code tags?)
 
Old 09-27-2013, 03:04 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,610

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Pick one (redirecting output to file/nowhere/variable):
Code:
command &>file
command &>/dev/null
variable=$(command 2>&1)
 
Old 09-28-2013, 10:30 AM   #4
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Great IT got worked thanks for your command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Executing a Shell Script mmhs Linux - Newbie 2 07-15-2012 07:40 AM
different way of executing shell script vaibhavs17 Linux - Newbie 3 07-11-2012 06:11 PM
executing perl script inside shell script scriptme101 Programming 3 04-11-2012 09:30 AM
Executing a Shell script with 654 permissions inside another shell script. changusee2k Linux - Newbie 2 06-07-2011 07:58 PM
executing a shell script from C llama_meme Programming 2 04-01-2002 09:10 PM


All times are GMT -5. The time now is 01:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration