LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2014, 06:09 AM   #1
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Rep: Reputation: Disabled
flow redirection


Hi for all,
I want to update and the compile ns3 using ./waf command.
For that reason , i create an sh file including all needed command and I'm using ./myfile.sh to execute it.
Evry thing is OK.
However, I need to get the output in a file called Output.txt.
For that reason, I write ./myfile.sh > Output.txt.
but only some of command are written in the file and the other output like compiling process are not included.
how can I do it ?
Best regards.
 
Old 04-01-2014, 07:39 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
would be nice to see that script.
Probably ./myfile.sh > Output.txt 2>&1 helps
 
1 members found this post helpful.
Old 04-01-2014, 07:42 AM   #3
torjemen
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
the script is the following:

Quote:
#!/bin/bash

#############################################
# download modified openflow switch support #
# implementation, configure it and build it #
#############################################

git clone https://github.com/lucval/ofsid.git
cd ofsid/
./waf configure
./waf build
var=$(pwd)
cd ../


#############################################
# configure ns-3 enabling openflow support #
#############################################

./waf distclean
./waf configure --with-openflow=$var --with-brite=$var+"/src" ###add here further options if required
cp -r ofsid/include/openflow/ build/


#############################################
# download modified lte, csma and openflow #
# modules in order to supporting dmm in ns3 #
#############################################

cd src/
rm -rf lte
git clone https://github.com/lucval/lte.git

rm -rf csma
git clone https://github.com/lucval/csma.git

rm -rf openflow
git clone https://github.com/lucval/openflow.git

rm csma/ipv4_17.h
mv csma/ipv4.* internet/model
cd ..


#############################################
# finally build ns-3 #
#############################################

./waf build

Last edited by torjemen; 04-01-2014 at 07:45 AM.
 
Old 04-02-2014, 10:34 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
did that help to you? (2>&1)? you can also try to insert set -xv as second line to see what's happening
 
  


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
Serial Driver HW FIFO over flow and 64K tty buffer over flow harsh_electro Linux - General 0 12-07-2012 11:44 PM
program flow pr0xibus Programming 1 07-28-2009 09:43 AM
flow control rehan999 Linux - Networking 3 05-05-2008 03:58 AM
About Packet Flow qs_tahmeed Linux - Networking 3 10-20-2005 06:50 PM
flow chart sw allelopath Linux - General 1 04-06-2004 07:02 AM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration