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, [email protected] 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: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 146:12:50 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,501 |