holzschu / holzschu/a-shell

Run commands automatically in interactive ssh session with apple shortcuts

Open
#881 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

I would like to be able to automatically run consecutive commands in an ssh session, but I can't get the commands to run on the server interactively. Take this example:

![image](https://github.com/user-attachments/assets/a7bf7bde-dba1-4c6b-af68-ec6f0700c9c2)

I would like for this to launch my ssh session, then print "hello world" on the server, not the local a-shell instance. I could do it all in one command like this: `ssh user@domain 'hello there'`, but this won't enter into the ssh terminal on the server. Is there a way to enter into the ssh session and run additional commands automatically?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.