Solved

BusyBox doesn't seem to be parsing input

Posted on 2013-11-10
7
392 Views
Last Modified: 2013-12-09
Hi,

I have an embedded Linux system and I cant seem to get busybox to parse input. I have

ttyS0::respawn:-/bin/sh

in my inittab file, but after the system boots all it seems to do is echo my input, rather than parsing it with busybox(/bin/sh).

eg.

I send "ls" to the serial console and all I get back is "ls" rather than a directory listing.

Any input would be appreciated.

Thanks in advance.
0
Comment
Question by:sean-keys
  • 4
  • 3
7 Comments
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Are the commands listed in the bin directory? Try cd and run in the absolute directory or consult the vendor.

Sometimes not all the commands are available in an embedded Linux environment.
0
 

Author Comment

by:sean-keys
Comment Utility
I cant "cd".  If i type "cd" and hit return it will just echo "cd" back in my face without really running "cd". See what I mean?
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Do you have the correct baud-rate, connection setting?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:sean-keys
Comment Utility
oh yeah, the strings that get dumped to the serial console are correct
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
If you are certain the connection setting is correct. I would check with the vendor. This sounds like a locked down version of busybox.
0
 

Accepted Solution

by:
sean-keys earned 0 total points
Comment Utility
The problem lied within an application that was forking and hijacking the tty that's connected to the serial port.

Sorry guys, a problem that would be very difficult to spot for anyone not connected to that device.
0
 

Author Closing Comment

by:sean-keys
Comment Utility
It would have been overly difficult for a third party to diagnose this one.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now