I'm a new python user and I'm trying to create a python program that will run on a targate and communicate with the terminal.
The main idea is to run several commend and short programs and analyze the results.
for example running those 2 commands:
ls | grep filename
and if file name existed in the folder know it and continue according to it.
for some reason I'm unable to find the way to communicate with the terminal throw python or by using Pexpect.
If you may please assist me in finding the commends that will allow me do this I will really appreciate it :-)