cancel
Showing results for 
Search instead for 
Did you mean: 

Pre/Post Commands and intermittent failures

John_T__Croson
Level 4
My pre/post commands are intermittently failing.

The errors are:
My commands are pretty basic:
Code:
@echo offc:\windows\system32\psservice \\mydc -u BackupExec -p mypass query FlashFilerService | find /N "STOPPED"if errorlevel 1 goto STOPgoto END:STOPc:\windows\system32\psservice \\mydc -u BackupExec -p mypass stop FlashFilerServicegoto END:ENDexit

This just stops my service so I can backup some database files. I have a post script just like this that starts the service back up. Running these at the CLI takes literally 2 seconds to complete.
 
Why does this fail? Is it looking for a return code that doesn't occur, or does it run too fast?
 
TIA!
1 REPLY 1

John_T__Croson
Level 4
Just an update to this post for anyone that cares....

Ran a report detailing problem files, and fully expected to have a list generated that pointed to files locked by my service that I try to stop, and *BEHOLD*, no problem files.

It seems pretty clear to me that BE is looking for a return code of some specific type and not getting it, hence the "failure".

Guess I'll just have to chaulk this up to another "bug" in the ever-growing Symantec corporate giant.

Perhaps someday soon they'll catch up to M$'s bug count?