On 2024-11-22 08:28, eben@gmx.us wrote:
On 11/21/24 19:24, Bitfox wrote:Hi I have a interactive command like the following, $ ./filen / > upload upt-snappy /Uploading upt-snappy [========================================] 100% | ETA:0s | 1.4 KiB / 1.32 KiB / >the command "filen" will open a interactive shell, and in this shell toupload/download files. How can I write a script for this case to upload file automatically?Can you do something like echo "upload upt-snappy p" | ./filen ?
That seems impossible. $ echo "upload tmp" |./filen upload tmpError trying to prompt for user input: readline was closed. (maybe you're in an environment without stdin, like a Docker container)
Error [ERR_USE_AFTER_CLOSE]: readline was closed Regards