Results for log.out 2>&1

44 views
Skip to first unread message

Osama Gazali

unread,
Nov 3, 2014, 8:37:26 AM11/3/14
to ns-3-...@googlegroups.com

Dear Sir

this is topic exists in general but i have specific problem. as I understand

 log.out 2>&1 is redirect log messsage to file.

My question I want to direct Log message of type to text file. This is the only Log message in class CAMmanage which I care.

 

NS_LOG_INFO( "INSIDE THE T-DCC LOOP " <<interTXCAM<<" at "<<Simulator::Now ().GetSeconds ());

Please help me if you can and thanks for your time


Silvio Sampaio

unread,
Nov 3, 2014, 9:00:49 AM11/3/14
to ns-3-...@googlegroups.com
Osama Gazali,

Try to disable all logs and use NS_LOG_UNCOND istead of NS_LOG_INFO to print this message...

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Nov 3, 2014, 9:05:55 AM11/3/14
to ns-3-...@googlegroups.com

Osama Gazali

unread,
Nov 3, 2014, 9:22:32 AM11/3/14
to ns-3-...@googlegroups.com
Thanks both of you. i think the first solution is better for beginner.

i replaced NS_LOG_INFO( "INSIDE THE T-DCC LOOP " <<interTXCAM<<" at "<<Simulator::Now ().GetSeconds ());
........ to NS_LOG_UNCOND( "INSIDE THE T-DCC LOOP " <<interTXCAM<<" at "<<Simulator::Now ().GetSeconds ());  and I disable all Log in my scratch file. But it just take time without outputing anything...

What i did is disable all log in my scratch file, replace NS_LOG_INFO by NS_LOG_UNCODE and run the following
./waf --run scratch/c2c-dcc-trc-test1 > log.out 2>&1

Thanks a lot

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/tBfDYdcJ2PY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Tommaso Pecorella

unread,
Nov 3, 2014, 9:27:01 AM11/3/14
to ns-3-...@googlegroups.com
Sorry but... what is the difficulty in typing "grep "INSIDE THE T-DCC LOOP" myLogFile.txt > myLogFilePurged.txt" ???

Maybe reading the ***** manual is too hard ? Harder than changing all and every NS_LOG function ?

Silvio Sampaio

unread,
Nov 3, 2014, 9:47:00 AM11/3/14
to ns-3-...@googlegroups.com
Osama Gazali,

Nice to hear that you get what you need. But it was just a workaround, as well as using grep. 
I suggest you to read the interesting (aka "******" - I hope!!!) manual to better understand how the ns-3 logging module works!  :)


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Osama Gazali

unread,
Nov 3, 2014, 9:54:29 AM11/3/14
to ns-3-...@googlegroups.com
Thanks for help. It is clear now

Tommaso Pecorella

unread,
Nov 3, 2014, 11:16:53 AM11/3/14
to ns-3-...@googlegroups.com
"****" may stand for:
  • Interesting
  • Complete
  • Informative
  • Recently updated
  • Unnecessarily long
  • Syncretic
  • Impervious
  • Anachronistic
... just to name a few.

In general, it stands for whatever adjective you want to add about the manual itself. The asterisks are not to obscure some swearing (that's done by using different chars, like "#§@&%$£@!®∆"). They are used to let the reader apply the adjective they like most.

Cheers,

T.

Silvio Sampaio

unread,
Nov 3, 2014, 12:11:54 PM11/3/14
to ns-3-...@googlegroups.com
Nice way out! :)
Peace!
Reply all
Reply to author
Forward
0 new messages