Pipe bash script to terminal from Python

Need help with C, C++, perl, python, etc?

Pipe bash script to terminal from Python

Postby Pybash » 2018-02-10 12:16

Hello, I have written a bash script, which runs (almost) fine,
when I call it from terminal emulator like:
Code: Select all

Then I have created a shortcut in Python to pipe the script to a specific terminal emulator.

Code: Select all
Key([Super], "m", lazy.spawn("/home/"+USER+"/.user/init.sh")),]

The init.sh is:
Code: Select all
 ~/script.sh > /dev/pts/0

Now I does not work correctly anymore, it gets interpreted like:

Code: Select all
sh  ~/script.sh > /dev/pts/0

How do I need to call it the right way?

Regards Pb
Posts: 8
Joined: 2018-02-10 12:04

Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests