Skip to content
Advertisement

Tag: python

Python: Run command for another software in terminal

I am using a software that my lab has developed, lets call it cool_software. When I type cool_software on terminal, basically I get a new prompt cool_software > and I can imput commands to this software from the terminal. Now I would like to automate this in Python, however I am not sure how to pass the cool_software commands onto

Text file is busy error from a shell script file

I am currently working on a project that writes and executes a shell script based on the input of the user. And I run the Shell file with this: But whenever the code executes the shell script, I get the error message: Text file is busy Answer All I had to do is close the file before executing it as

xlwings alternative on Linux

I have a small Python script with the purpose of updating certain cells of an Excel sheet stored on Onedrive. In particular, the Excel workbook contains a price list in one sheet, a list of variables (e.g., currency exchange rate) that are to be updated automatically via Python in the second sheet, and a history of currency exchange rates in

Read a keystroke from user

I would like to read a single key from the user: letters, numbers, and things like Esc or Del, and the arrow-keys. So far I have been using a 3rd party module called readchar. A few approaches to the task are discussed here: How to read a single character from the user?. They run along these lines: Unfortunately this only

Advertisement