Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Looking to suppress an error...

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
chrisvh



Joined: 08 Jul 2009
Posts: 2

PostPosted: Wed Jul 08, 2009 3:56 pm    Post subject: Looking to suppress an error... Reply with quote

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: 8759

PostPosted: Thu Jul 09, 2009 9:22 am    Post subject: Reply with quote

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

PostPosted: Thu Jul 09, 2009 2:39 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: