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
?

Reply via email to