Is it possible to use python in order to automate interaction in Linux? (for example, sending "Yes" to StdInput whenever the string "Are you sure?" is sent to StdOutput)
Thanks.
The technique of automating the web with Python works great for many tasks, both general and in my field of data science. For example, we could use selenium to automatically download new data files every day (assuming the website doesn't have an API).
Python is often used in workplaces to automate and schedule the sending/receiving of emails and texts. Python packages – email, smtplib, are used for sending emails using just Python. You can turn a time-consuming task into an automated/scheduled task.
Yes, take a look at pexpect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With