Solved

BusyBox doesn't seem to be parsing input

Posted on 2013-11-10
7
394 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
ID: 39639166
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
ID: 39640130
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
ID: 39640301
Do you have the correct baud-rate, connection setting?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

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

Expert Comment

by:Mazdajai
ID: 39640324
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
ID: 39696246
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
ID: 39705706
It would have been overly difficult for a third party to diagnose this one.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

776 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