Here is the situation:
We have the standard Host script (The one supplied by Procomm)
Awaiting a incoming file.
At 7:30am we want to end the Host script and start another script that sends a file after that completes (About 3 minutes) we want to restart the Host script.
This is what I have done with (KNOB) help.
1)
I added the logic to end the Host script at 7:30am.
proc main
string HostPath
integer iYear, iMonth, iDay, iHour, iMin, iSec
while 1
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
if iHour == 07
if iMin == 30
pwexit
endif
endif
fetch ASPECT PATH HostPath ;get current ASPECT path
addfilename HostPath "HOST\_HOST" ;add the file name to the path
execute HostPath ;run the main host script
endwhile
endproc
2)
At 7:31am the window scheduler starts another script that sends a file.
3)
At 7:35am the window scheduler starts the Standard Host script again and this runs until 7:30am
Problem is in the Host Script!!!!
It runs great the first time, but after that it never exits the script.
I have run debug on it and stepped thru and the time variables are working but the pwexit only works once.
I am a real novice with the Aspect language!!!
Why is that???
Thanks.
We have the standard Host script (The one supplied by Procomm)
Awaiting a incoming file.
At 7:30am we want to end the Host script and start another script that sends a file after that completes (About 3 minutes) we want to restart the Host script.
This is what I have done with (KNOB) help.
1)
I added the logic to end the Host script at 7:30am.
proc main
string HostPath
integer iYear, iMonth, iDay, iHour, iMin, iSec
while 1
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
if iHour == 07
if iMin == 30
pwexit
endif
endif
fetch ASPECT PATH HostPath ;get current ASPECT path
addfilename HostPath "HOST\_HOST" ;add the file name to the path
execute HostPath ;run the main host script
endwhile
endproc
2)
At 7:31am the window scheduler starts another script that sends a file.
3)
At 7:35am the window scheduler starts the Standard Host script again and this runs until 7:30am
Problem is in the Host Script!!!!
It runs great the first time, but after that it never exits the script.
I have run debug on it and stepped thru and the time variables are working but the pwexit only works once.
I am a real novice with the Aspect language!!!
Why is that???
Thanks.