go ahead... be a heretic | |
PerlMonks |
Re^2: i2c bus contentionby anita2R (Scribe) |
on Mar 30, 2020 at 13:07 UTC ( [id://11114796]=note: print w/replies, xml ) | Need Help?? |
@GrandFather I would rather not combine my scripts, as they each have very different purposes, and the two scripts are also used independently on other machines. I think that creating a daemon is worth a try. As I have no formal IT training, this is going to be an interesting learning experience. As to the common module with a lock file, I am still stuck with how to have two scripts accessing a common module. I have now tried running a script that has package functions and calls the two test scripts. Pretty messy to put it mildly, but is was just an experiment.
but I don't get past the first 'do'. I presume that 'do' is waiting for the script it calls to end and return a value. 'A' is never printed The module code without the 'calls' to the two test scripts was used to test the common module approach, but as I said, it looks like each test script invokes a separate copy of the module.
In Section
Seekers of Perl Wisdom
|
|