• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

BusyBox doesn't seem to be parsing input

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
sean-keys
Asked:
sean-keys
  • 4
  • 3
1 Solution
 
MazdajaiCommented:
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
 
sean-keysAuthor Commented:
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
 
MazdajaiCommented:
Do you have the correct baud-rate, connection setting?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sean-keysAuthor Commented:
oh yeah, the strings that get dumped to the serial console are correct
0
 
MazdajaiCommented:
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
 
sean-keysAuthor Commented:
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
 
sean-keysAuthor Commented:
It would have been overly difficult for a third party to diagnose this one.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now