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 to upload/download files.
How can I write a script for this case to upload file automatically?
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
to
upload/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
?
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 to upload/download files.
How can I write a script for this case to upload file automatically?
Thanks.
$ echo "upload tmp" |./filen
upload tmp
Error 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
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 to upload/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
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 to
upload/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 tmp
Error 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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 157:04:37 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,475 |