LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   traceroute script printing on the shell itself while executing (https://www.linuxquestions.org/questions/aix-43/traceroute-script-printing-on-the-shell-itself-while-executing-4175478655/)

senthil4984 09-26-2013 11:39 AM

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.

unSpawn 09-26-2013 12:04 PM

Quote:

Originally Posted by senthil4984 (Post 5035381)
I have written the bash script fot traceroute ,but

Post the actual complete script? (in vBB code tags?)

NevemTeve 09-27-2013 03:04 PM

Pick one (redirecting output to file/nowhere/variable):
Code:

command &>file
command &>/dev/null
variable=$(command 2>&1)


senthil4984 09-28-2013 10:30 AM

Great :) IT got worked thanks for your command.


All times are GMT -5. The time now is 06:33 PM.