03-01-2020, 12:31 PM
(02-29-2020, 06:35 PM)TheOldPresbyope Wrote:(02-29-2020, 06:16 PM)Tim Curtis Wrote: I don't think that will work. ...
...
OP could try the following to see if an error occurs
Code:pi@rp3:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import subprocess
>>> subprocess.call(['mpc', 'load', 'Default Playlist'])
Yeah, my bad twice-over. I was thinking only of the command line.
What you suggest at the end of your post is exactly what is in the code in my guide (so is the use of vol.sh)
I'm having a bad day wrestling a real-world problem. I should just ignore this distracting computer for a while
Regards,
Kent
thank you for reply this what i got
pi@moode:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import subprocess
>>> subprocess.call(['mpc', 'load', 'Default Playlist'])
loading: Default Playlist
0