@nemecyys said in runcommand-onstart.sh pass data to python script:
Because im running this python script every time i run onstart.sh or onend.sh does that mean there will be LOTS of instances of it running?
On normal typical usage, no. The runcommand script calls the onstart one and waits it finish. The way you're invoking your python script in onstart also makes it wait the python script to finish.
Then, from what I'm seeing from the codes, I believe that there won't be lots of instances running.
With a Bash Script:
Would this also be the case?
Would i want to exit the bash after running and achieving the desired result?
There's no need.
*also, any links to some of meleu's coding goodness?
You can find links to some of my scripts on the "useful topics" post (link on my signature). You can find many other useful info there. ;-)
Oh, as @cyperghost said, we usually use this thread to talk about shell scripting.
By the way, you asked above and I'm not sure if you got an answer: the /dev/shm/runcommand.log file is deleted after a shutdown/reboot.