How to automate a command input in Colab

488 Views Asked by At

As you can see in this image Everytime i have to agree to the speedtest terms of Ookla by typing 'Y'. Is there any way to automate this input. (in the same cell). Such that i won't have to type 'y' personally there

I tried finding a solution on Google. But google doesn't seem to understand my query

1

There are 1 best solutions below

0
On BEST ANSWER

You can use the pipe | to redirect stdout to stdin.

! echo YES | speedtest