I am trying to check connection to a StarTeam server using the Pandora Agent(1.2 version). All I am trying to do is, to run a StarTeam command that connects to the server and after that echoing the %errorlevel% to check if its a non-zero value(connection failed if it is nono-zero). Is there an easy way to do this?
As of now, I have modified the Pandora_Agent.conf file to include a module,
stcmd connection check
module_begin
module_name stcmd_connect
module_type generic_data
module_exec c:\Program Files\Pandora_Agent\stcmd_check.bat
module_description Checking connection with StarTeam
module_end
Also, the stcmd_check.bat looks like this:
stcmd.exe list -p "xyz@12.180.11.226:55201/StarFlow Extensions" -pwdfile "c:\Documents and Settings\xyz\stcmd_pwd.txt" -x -fp "D:\projects\StarFlow Extensions"
echo %errorlevel%
I am unable to capture the variable %errorlevel% into the pandora module.
Any help is appreciated!