I'm currently building a shell in python. The shell can execute python files, but I also need to add the option to use PIPEs (for example '|' means that the output of the first command will be the input of the second command).
In order to do so, I need to have the option to take what the first command was going to print (notice that the command might not be a system command but a python file that has the line
print 'some information' I need to pass it on to a variable in the shell. Can anyone help?