Quantcast
Channel: All Data Protector Practitioners Forum posts
Viewing all articles
Browse latest Browse all 10494

Re: Post-exec script: (.bat file)

$
0
0

finally I have written such a script. Now I have two questions:

1) when I run the script on dpcm.corp.testbackup.com cleint it works, but when I run it on dpcm.corp.testbackup.com it doesnt work and gives me such an error. what could be the reason.

 

[Critical] From: INET_thread_flag.py@dc01.corp.testbackup.com "dc01.corp.testbackup.com" Time: 9/8/2014 3:27:50 PM

[70:24] A system error occurred when starting the target script or an agent module. The system error code reported is 193 and the message resolves to '[193] %1 is not a valid Win32 application. '.

 

[Major] From: BSM@dpcm.corp.testbackup.com "test-dc01-docs" Time: 9/8/2014 3:27:50 PM

                Session remote exec script "flag.py"

                on host dc01.corp.testbackup.com failed.

============================================================================

                     Session completed with failures!

 

2) I have a batch script which calls flag.py but I want to add sth that run the flag.py script just only when the backup is successful (SMEXIT == 0 otherwise exit)

    a) I am not sure if I should insert it in my post-exec script or just in my batch file?

    b) I added this line if "%SMEXIT%"=="0" to my batch script which calls pythin script:

if "%SMEXIT%"=="0"
c:\python27\python.exe "C:\Program Files\Omniback\bin\flag.py"

 

the python script has no problem by itself but when I just add if "%SMEXIT%"=="0" into my batch file I get error: the syntax of the command is incorrect.

 

what is the problem or what is the correct syntax?

 

Thanks


Viewing all articles
Browse latest Browse all 10494

Trending Articles