Timeline for How to troubleshoot a bash script called by a python script called by a program?
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 4, 2019 at 1:04 | comment | added | Sidereal | Just an FYI that I am running strace on the PID of the bash script itself. | |
| Dec 3, 2019 at 23:10 | history | edited | kenorb | CC BY-SA 4.0 |
added 100 characters in body
|
| Dec 3, 2019 at 23:08 | comment | added | Sidereal | I got strace to work, thank you. Now the problem is deciphering its output... | |
| Dec 3, 2019 at 23:04 | comment | added | doneal24 |
I would add the flag -o /tmp/strace.log to the strace command to have its output go to a file. In particular, look for an exec to the name of the bash script to make sure it is being called.
|
|
| Dec 3, 2019 at 22:44 | history | edited | kenorb | CC BY-SA 4.0 |
added 40 characters in body
|
| Dec 3, 2019 at 22:38 | history | edited | kenorb | CC BY-SA 4.0 |
added 164 characters in body
|
| Dec 3, 2019 at 22:36 | comment | added | kenorb |
@Sidereal Another way: add sleep 20 to your bash script to give you some time, run ps wuax | grep bash, find its PID and try strace -fp PID.
|
|
| Dec 3, 2019 at 22:35 | comment | added | kenorb |
-f follows all processes as a result of the fork, vfork and clone system calls, maybe the script is triggered using some different method.
|
|
| Dec 3, 2019 at 22:32 | comment | added | Sidereal | strace doesn't seem to follow the full thread of things that occur, which unfortunately doesn't help in this scenario. | |
| Dec 3, 2019 at 22:32 | comment | added | kenorb |
@Sidereal strace -f bbb-record --rebuild 5b64bdbe09fdefcc3004c987f22f163ca846f1ea-1574708322765
|
|
| Dec 3, 2019 at 22:29 | comment | added | Sidereal | Having trouble formatting this. If the actual command that kicks off the program is bbb-record --rebuild 5b64bdbe09fdefcc3004c987f22f163ca846f1ea-1574708322765, how do I fit that into this strace command? | |
| Dec 3, 2019 at 22:06 | history | answered | kenorb | CC BY-SA 4.0 |