Solved

BusyBox doesn't seem to be parsing input

Posted on 2013-11-10
7
393 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 42
Kali Linux store / persist wireless password 3 48
nagios 1 22
Linux haproxy: stop temporary haproxy service 9 36
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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

910 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

20 Experts available now in Live!

Get 1:1 Help Now