L
L
linuxnb2018-08-02 11:19:56
bash
linuxnb, 2018-08-02 11:19:56

How to send multiple commands to a Linux client via BASH?

Good time of the day
The task is to send numbers from N to N++ (conditionally) to the client through a cycle,
this method works, but each time the cycle initializes the client's launch, how to avoid this?
(in quotation marks the number we are sending), is it possible somehow to send numbers to the client without constantly restarting?
The code

#!/bin/bash

for i in $(seq 1000 9000)
do
telegram-cli -W "hello $i "
done

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-08-02
@q2digger

Run telegram-cli as daemon. The documentation has detailed instructions:
https://github.com/vysheng/tg/wiki/Running-Telegra...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question