Skip to content

Tag: terminal

How to run an installed python package from terminal

I have a python code like so The run.py has a function like so: After installing this package how do I execute the run.py script on my terminal. I realize this question has been asked before but I wasn’t satisfied with that answer as it did not offer me any insight. Answer You want This relies on PYTHON…

Overwriting TS Stream File with FFMPEG in Linux

I’m trying to convert rtmp streams to m3u8 stream. To reach that aim I use FFMPEG. Now, there is no problem with converting and downloading. However, it writes lots of .ts file such as channel0000.ts,channel0001.ts,channel0002.ts. Per every 10 seconds, 1 ts file is created. In this point, I want a singl…

How to auto answer linux terminal

My code is But after question is “do you want install [y/n]”. How can I automaticaly answer to question? I want Whenever the terminal asks a question, my answer is be “y”. Answer Just add following to your command: It makes sure that confirmation is avoided.