InfernalRapture
New member
I have a CLI script.
I also have a relay script which basically calls all the same functions but writes it into the relay browser.
I want to be notified exactly once, no matter which flavor is run.
Putting notify at the top of the CLI script causes it to report that the CLI script was run, but will not tell me anything if the relay script was used.
It seems as though the notify command uses File Paths to identify the script, so putting it at the top of both files will tell me once for each side, causing double reporting for those users who go both ways.
Is there a way to make it do what I want? If not, I can roll my own if someone will please show me how I can send a kmail from ASH, that has no meat or items attached.
One last note, I don't want to import some external library to do this. That would force a dependency I don't want to inflict on my users. If you point me at one, I might steal code, but I won't be using your library. I'd much rather you save me the trouble and post a code-snippet.
I also have a relay script which basically calls all the same functions but writes it into the relay browser.
I want to be notified exactly once, no matter which flavor is run.
Putting notify at the top of the CLI script causes it to report that the CLI script was run, but will not tell me anything if the relay script was used.
It seems as though the notify command uses File Paths to identify the script, so putting it at the top of both files will tell me once for each side, causing double reporting for those users who go both ways.
Is there a way to make it do what I want? If not, I can roll my own if someone will please show me how I can send a kmail from ASH, that has no meat or items attached.
One last note, I don't want to import some external library to do this. That would force a dependency I don't want to inflict on my users. If you point me at one, I might steal code, but I won't be using your library. I'd much rather you save me the trouble and post a code-snippet.