Maimonator / telewrap

A script that wraps cmdline executable with a telegram bot
18 stars 1 forks source link

Send in telegram the stdout of the executable #6

Open xrl1 opened 1 year ago

xrl1 commented 1 year ago

It could have been nice if there was a flag to also capture the stdout and stderr of the wrapped executable

Maimonator commented 1 year ago

Can you elaborate on the usage?

xrl1 commented 1 year ago

Yes sure: Let's say I have a script that probes movie theater occupation status. I'm waiting for good sits for the new Barby movie. The script tries a couple of different movie theaters, and when it finds a free space - it sends me a message so I can go and buy tickets online for those sits. I want to have an indication in the telegram message of which movie theater and what time and date, so I can go ahead and but it directly. The script outputs this info to stdout.