Author |
Message |
chrisvh
Joined: 08 Jul 2009 Posts: 2
|
Posted: Wed Jul 08, 2009 3:56 pm Post subject: Looking to suppress an error... |
|
|
Hello,
I have the email notification script installed and running after many job executions on my data server. On one job however, a database replication every 15 minutes, I always get an "Exit Code: 3. Execution completed with file copy/delete errors. [ERROR]".
It's telling me a certain file cannot be accessed because it is being used by another process. Is there anyway to have it ignore this completely and not output any errors? Other processes are constantly writing to the database and other files in it's directories so there will always be something else using one of the files it is trying to copy to the data server's backup directory.
Just trying to stop the email spam without having to actually remove the script from that specific job, I still want email notifications if other errors come up. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
Posted: Thu Jul 09, 2009 9:22 am Post subject: |
|
|
Hello, a possibility could be to modify the script not to send the e-mail if the exit code is 3, would that work for you? thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
chrisvh
Joined: 08 Jul 2009 Posts: 2
|
Posted: Thu Jul 09, 2009 2:39 pm Post subject: |
|
|
Is exit code 3 ever anything really serious or is it always just a notice about a file not coming with the bulk.
EDIT:
Looked at the help to see what Exit Code 3 will always mean, decided to let the script treat exit code 3 like 0.
Changed the line in the script from:
Code: | If SEND_EMAIL_ONLY_IFERROR = False Or exitcode <> "0" Then |
to:
Code: | If SEND_EMAIL_ONLY_IFERROR = False Or (exitcode <> "0" and exitcode <> "3") Then |
Works now, thanks for the idea. No longer receive email spam when the job ends with exit code 3. |
|
Back to top |
|
|
|