blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.19k stars 577 forks source link

Need `scp` scripting #2038

Open nisbet-hubbard opened 2 months ago

nisbet-hubbard commented 2 months ago

Checklist

Configuration

Relevant to any configuration

Describe the bug

When using the mobile device to regularly back up configuration files on a remote machine, it’s desirable to be able to run several scp --update commands in one go. Local scripting isn’t possible, however, without chmod to make a script executable.

carloscabanero commented 2 months ago

Even if Blink looks like a shell, it isn't really one - the main program (the "shell") is what in the old times we called a "loader", and that is why in code it is called the MCP, the Master Control Program. This is all to say that Blink doesn't support scripts, so it doesn't make much sense to have chmod anyway.

So let's simplify, we need scp scripting and other types of "scripting". Already have a few ideas for how to do it, so will take this use case in consideration.