I got two files: myPython.py && myBash.sh
I would like to make myPython.py output an XML file, and myBash.sh receive this XML file as input then do sth on it.
What I want to do in console is like this
myPython.py | myBash.sh
The question is: How to return an value in python file? And how to receive an XML file for myBash.sh in a pipe line?
Thanks
If you just do a simple 'print', it should work. For example:
python -c 'print "foo"' | cat
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.