S
sebastian nielsen
I want to run a command from a perl script in nonblocking mode.
So lets say we have this routine:
sub EndOfBody {
($self, $mailid) = @_;
close(MAILFILE);
#Here I want to run: "C:/parser.exe $mailid"
return(250 , "Mail has been delivered!");
}
At the comment, I want to run the command
C:/parser.exe $mailid
and then instant after launching the command, continue with returning
250 "Mail has been delivered!" while parser.exe is running. (and the
parser.exe should continue running even when the script with the
EndOfBody subroutine has exited)
Since when receiving mails with large attachment, I need to be able to
parse the mail in the background and extract all attachments to a
separate folder, without causing the client to the SMTP server to
timeout.
parser.exe may return something, but it isnt anything useful, so its
no need to take care of the return value from parser.exe
So lets say we have this routine:
sub EndOfBody {
($self, $mailid) = @_;
close(MAILFILE);
#Here I want to run: "C:/parser.exe $mailid"
return(250 , "Mail has been delivered!");
}
At the comment, I want to run the command
C:/parser.exe $mailid
and then instant after launching the command, continue with returning
250 "Mail has been delivered!" while parser.exe is running. (and the
parser.exe should continue running even when the script with the
EndOfBody subroutine has exited)
Since when receiving mails with large attachment, I need to be able to
parse the mail in the background and extract all attachments to a
separate folder, without causing the client to the SMTP server to
timeout.
parser.exe may return something, but it isnt anything useful, so its
no need to take care of the return value from parser.exe