Skip to content

Commit 1e71b24

Browse files
committed
More info messages to prove xp_cmdshell (and temporary directory choosen) worked
1 parent c735d84 commit 1e71b24

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,19 @@ def __xpCmdshellTest(self):
104104
pushValue(threadData.disableStdOut)
105105
threadData.disableStdOut = True
106106

107+
logger.info("testing if xp_cmdshell extended procedure is usable")
107108
output = self.evalCmd("echo 1")
109+
108110
if isNoneValue(output):
109-
errMsg = "it seems that the temporary directory ('%s') used for storing " % self.getRemoteTempPath()
110-
errMsg += "console output at the back-end OS does not have "
111-
errMsg += "writing permissions for the DBMS process. You are advised "
112-
errMsg += "to manually adjust it with option '--tmp-path' or you won't "
113-
errMsg += "be able to retrieve the console output"
111+
errMsg = "it seems that the temporary directory ('%s') used for " % self.getRemoteTempPath()
112+
errMsg += "storing console output within the back-end file system "
113+
errMsg += "does not have writing permissions for the DBMS process. "
114+
errMsg += "You are advised to manually adjust it with option "
115+
errMsg += "--tmp-path switch or you will not be able to retrieve "
116+
errMsg += "the commands output"
114117
logger.error(errMsg)
118+
else:
119+
logger.info("xp_cmdshell extended procedure is usable")
115120

116121
threadData.disableStdOut = popValue()
117122

0 commit comments

Comments
 (0)