Solved

BusyBox doesn't seem to be parsing input

Posted on 2013-11-10
7
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

630 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