Bash Read in retropie

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of titafubaki titafubaki 1 year, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #107774
    Profile photo of titafubaki
    titafubaki
    Participant

    Hi guys,
    I wonder how scripts in retropie works.
    I have created a theme for own Apps.(see pictures) There are some scripts (indicated with the extension .sh) The scripts work but if I try to use “read” to enter a information there will not be the possibility to enter something. There are just an error message like “read: read error: 0:bad file descriptor”.
    If i start the script in putty (SSH) it works fine.

    Here it is:

    #!/bin/bash
    echo -n "Enter your IP and press [ENTER]: "
    read ipaddress
    moonlight pair $ipaddress
    echo $ipaddress > /home/pi/RetroPie/roms/apps/ipaddress

    I think it is just something really stupid but i cant find a solution.
    The Last Picture is the Error. Do somebody have the solution?

    German Gaming Community DeGaCom.de
    Gallerie|Forum|Blog|Wiki

    Attachments:
Viewing 1 post (of 1 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar