mastermagrath
Technical User
Hi,
I was recently guided towards perl/tk for GUI creation but have realised this was only address 1 of my requirements.
I know i'll have to use separate processes but i cant seem to get a good picture as to how i can communicate between them, ideally i'd like a parent process to make a change to a variable which a child process would be constantly monitoring for change and then act upon the change.
Here's the script i want to implement: Hash characters are sent to STDOUT at a particular rate (e.g. i second delay between each), a user can adjust a slider widget to increase or decrease the rate of hashes output without having to stop and start the current output.
If create 2 processes, one for the GUI and one for the hash output how can i communicate the change in slider value to the process with the loop contolling the hash output?
I'm bamboozled by all the different areas that all look like possibilities i.e. pipes, forks, processes, spawns etc. I'd really appreciate some pointers.
Thanks in advance
I was recently guided towards perl/tk for GUI creation but have realised this was only address 1 of my requirements.
I know i'll have to use separate processes but i cant seem to get a good picture as to how i can communicate between them, ideally i'd like a parent process to make a change to a variable which a child process would be constantly monitoring for change and then act upon the change.
Here's the script i want to implement: Hash characters are sent to STDOUT at a particular rate (e.g. i second delay between each), a user can adjust a slider widget to increase or decrease the rate of hashes output without having to stop and start the current output.
If create 2 processes, one for the GUI and one for the hash output how can i communicate the change in slider value to the process with the loop contolling the hash output?
I'm bamboozled by all the different areas that all look like possibilities i.e. pipes, forks, processes, spawns etc. I'd really appreciate some pointers.
Thanks in advance