LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-15-2015, 07:46 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Output not being displayed when using command line


I am using the BACnet stack at http://sourceforge.net/projects/bacnet/ on both a Centos box and a Raspberry Pi. Note that this question has nothing to do about BACnet or this library.

I perform an identical command on the two machines, and the Raspberry Pi displays a response, but the Centos box does not. I think that the Centos box might be directing the output to something other than stdout.

Any recommendations how to troubleshoot and get the Centos box to display the output? Thanks

Code:
pi@raspberrypi ~/bacnet-stack-0-8-0 $ ./bin/bacrp 1234 1 0 85
100.000000
pi@raspberrypi ~/bacnet-stack-0-8-0 $
Code:
[root@devserver bacnet-stack-0-8-0]# ./bin/bacrp 1234 1 0 85
[root@devserver bacnet-stack-0-8-0]#
 
Old 12-15-2015, 11:16 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Quote:
Note that this question has nothing to do about BACnet or this library.
I feel this is a big call as the shell would not make up its own mind to change where to send something.

Is it possible that the arguments might yield different results depending on which machine they are run on?

From the website I found:
Code:
$ demo/readprop/bacrp
bacrp device-instance object-type object-instance property [index]
Surely the device-instance would need to be different?
 
Old 12-15-2015, 02:19 PM   #3
thomas.hedden
Member
 
Registered: May 2006
Location: Carlisle, MA
Distribution: Ubuntu, Fedora
Posts: 60

Rep: Reputation: 16
I don't know the command or BACnet, but I did notice that one
command was issued as a normal user and the other was issued as root.
I wonder whether this command behaves differently for root that it does
for normal users? You might try logging in as root on the other machine
or vice-versa.
Tom
 
Old 12-15-2015, 11:04 PM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
In addition to above replies, have you tried redirection to a file?

And check whether the file will have the output.
 
Old 12-16-2015, 02:12 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Thank you Grail, Thomas, and JJJCR,

Turns out it was an iptables issue. Iptables is allowing incoming communication to the Centos box but not outgoing communication (I don't think I even have a firewall on the Pi). I didn't state so on my original post, but I also have a server application being ran on both machines. The Pi client is able to access the server application on the Centos box using ./bin/bacrp 1234 1 0 85 which in turn is able to give a reply back (for some reason, this is allowed). But executing ./bin/bacrp 1234 1 0 85 on the Centos box gets blocked, so nothing is displayed.

Still trying to resolve it, and if you have any thoughts, please see http://www.linuxquestions.org/questi...73#post5465173
 
  


Reply



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] Command output to file on the same line ulto Linux - Newbie 5 02-10-2015 10:42 PM
[SOLVED] Command Line Output mp85 Linux - Newbie 3 04-25-2014 10:46 AM
Bash store last line from displayed text output in a variable carl0ski Programming 1 01-16-2007 03:38 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 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
Open Source Consulting | Domain Registration