Skip to content

Run two commands on ttyd command line? #1485

@craigerl

Description

@craigerl

I'd like to run two commands in series on the ttyd command line. Normally I'd wrap the commands in a shell script and run that, but unfortunately that prevents SIGWINCH events from reaching the command, and I can't resize the web browser without corrupting the layout.

Is it possible to run

echo hello; vi /tmp/foo

on the ttyd command line? I'm running from php, if that matters.

thanks!
-craig

Actual code in question, which doesn't work:

  exec("export HOME=/home/pi/; /home/pi/ax25_setup.sh; sudo su -c \"/usr/bin/ttyd -W -p 7688 -t fontSize=16 -o -s SIGTERM **echo hello; /usr/local/bin/paracon.pyz**  > /dev/null 2> /dev/null &\" pi  " );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions