I have to troubleshoot this bash script called by a python script called by a program, all run in Ubuntu 18.04.
The python script and the program are black boxes. The only information I have is that they work fine, and the python script only fails when it calls the bash script because the script itself fails.
The bash script is very simple and works fine on its own, but fails whenever called from this script, which leads me to believe there is some sort of permissions error. The problem is, I need to find a way to get the error message it gives when it fails. How can I get that information in this situation?
set -x and
set -v does not spit out any information to the terminal when the bash script is run from the python script.
Here is the contents of the bash script:
#!/bin/bash echo "$1" >> /scripts/vomit mv $1/*.mp4 .
The problem line is
mv $1/*.mp4. If I comment out that line, the script works when called from the python script that is called by the program. I just don't know why the mv line is failing.