I have a bash CGI logging connections to my server, I want to that when a new connection is requested/stablised/served this script passes an argument/variable to another script running in the background? is this possible? how can i do this?
I have tried environmental variables but this will only work in the same shell and I cannot be sure both will be running on the same shell. I've tried writing to a file but how could i know when the file has been edited thus allow the second script to execute the command.
I'm starting to get crazy, this must be possible I cannot believe to "programs" cannot share information... :O
maybe i'm taking the wrong approach, can someone please advise?
Thanks, Marco P.