madesjardins
MIS
Hi there (Knob),
I currently have a script running every night that connects to roughly 450 telnet or dial up sites, downloads X amount of reports and moves on to the next one. It works to my liking but it takes WAY too long to run.
What I was thinking of doing is a main script that "dispatches" another script to connect and retreive the reports from another (new) Procomm session. The main script would have to monitor wether the new procomm session is still working, or how many procomm session are running, and launch a new one with a directory entry as a parameter. When the "connecting" script is done doing its thing, it would close Procomm to let the "main" script know that it's done.
I have 2 problems with this :
1) How do I pass a parameter from 1 script to another without using files (for fear of multiple scripts accessing the same file at the same time, etc).
2) How can I tell if another Procomm session is still running? I can't use $PWTASK since it's all the same for all Procomm sessions.
Thanks for any help you may provide.
I currently have a script running every night that connects to roughly 450 telnet or dial up sites, downloads X amount of reports and moves on to the next one. It works to my liking but it takes WAY too long to run.
What I was thinking of doing is a main script that "dispatches" another script to connect and retreive the reports from another (new) Procomm session. The main script would have to monitor wether the new procomm session is still working, or how many procomm session are running, and launch a new one with a directory entry as a parameter. When the "connecting" script is done doing its thing, it would close Procomm to let the "main" script know that it's done.
I have 2 problems with this :
1) How do I pass a parameter from 1 script to another without using files (for fear of multiple scripts accessing the same file at the same time, etc).
2) How can I tell if another Procomm session is still running? I can't use $PWTASK since it's all the same for all Procomm sessions.
Thanks for any help you may provide.