Sample Batch Files and Shell Scripts

Following are sample batch files and shell scripts that you can modify and use to run the automation program.

Windows Batch Files for Running Automation

importBaby.bat

@echo off
call pmauto.bat -server stsrv01 -port 8561 -user pmuser1 -password Pass99 -config "importBaby.xml"
pause

exportBaby.bat

@echo off
call pmauto.bat -server stsrv01 -port 8561 -user pmuser1 -password Pass99 -config "exportBaby.xml"
pause

calculateBaby.bat

@echo off
call pmauto.bat -server stsrv01 -port 8561 -user pmuser1 -password Pass99 -config "calculateBaby.xml"
pause

UNIX Shell Scripts for Running Automation

importBaby.sh

#!/bin/sh
sh pmauto.sh -server d10000 -port 8561 -user pmuser1 -password Pass99 -config "importBaby.xml" pause

exportBaby.sh

#!/bin/sh
sh pmauto.sh -server d10000 -port 8561 -user pmuser1 -password Pass99 -config "exportBaby.xml" pause

calculateBaby.sh

#!/bin/sh
sh pmauto.sh -server d10000 -port 8561 -user pmuser1 -password Pass99 -config "calculateBaby.xml" pause