Python Forum
tool/program/script to translate bash to python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: tool/program/script to translate bash to python (/thread-12192.html)



tool/program/script to translate bash to python - Skaperen - Aug-13-2018

does anyone know of a tool/program/script to translate bash to python? i have large (1751 lines) bash script that i would like to translate to python.


RE: tool/program/script to translate bash to python - ichabod801 - Aug-14-2018

http://www.swag.uwaterloo.ca/bash2py/


RE: tool/program/script to translate bash to python - Skaperen - Aug-14-2018

bummer! the video doesn't work. there is audio and i here some with accent i don't recognize talking about bash2py, but i see nothing.


RE: tool/program/script to translate bash to python - buran - Aug-14-2018

video works fine for me. Did you read the text below the video:
Quote:If you cannot see this video you may be using a browser that does not recognise the MOV video format. If using alternative browsers does not resolve this problem, please download bash2py_demo.mov explicitly and view this video on your own machine using an appropriate viewer.



RE: tool/program/script to translate bash to python - Skaperen - Aug-15-2018

Firefox does recognize that it's a video. there are things around the big black area just like a video normally has. there is a volume adjustment slide. when i mouse over it it, it changes to vertical. i can adjust it and it really does change the audio. there was also a full-screen button which i did try, hoping it would get things working, but all i got was a larger black area. the file was obviously transfered as i did get audio. so something was different about the video parts of this video file. i'll try downloading the file and running mplayer.

mplayer plays it OK but is reporting it as being h.264