Send Command with return
Posted: Tue Apr 28, 2020 4:39 pm
Hi,
I have two servers, Server 1 r File Server and Server 2 r File Processor.
When i get new files in server 1:
File Loop
copy file to folder on Server 2
Send Command to Task on Server 2 to process File
if receive Started 1 tasks
log message = "ok"
end if
end loop
but if i receive 4 files, the loop will send 4 commands to start the same task on Server 2, but the Server will still be executing the first command.
Its possible add "Wait For Finish" in send command or return "Started 0 tasks" when the task is not started because it is already running?
I have two servers, Server 1 r File Server and Server 2 r File Processor.
When i get new files in server 1:
File Loop
copy file to folder on Server 2
Send Command to Task on Server 2 to process File
if receive Started 1 tasks
log message = "ok"
end if
end loop
but if i receive 4 files, the loop will send 4 commands to start the same task on Server 2, but the Server will still be executing the first command.
Its possible add "Wait For Finish" in send command or return "Started 0 tasks" when the task is not started because it is already running?