<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: EXECUTE CMD -out log permissions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432708#M697938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it's just unusual syntax required here.&amp;nbsp; What's missing is that the entire DOS command needs to be wrapped in double-quotes, regardless of quotations inside the command, because these outer quotes are then NOT passed to the CMD window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...&amp;nbsp; I needed a generated command like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;EXECUTE cmd.exe /c cd &lt;STRONG&gt;"&lt;/STRONG&gt;"C:\Program Files\QlikView\Distribution Service\" &amp;amp;&amp;amp;QVDistributionService -r="D:\Data\ExampleApp.qvw" -out="d:\Data\logs\ExampleApp.log"&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, actually, I don't need to change directories first, so the following is more streamlined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;EXECUTE cmd.exe /c &lt;STRONG&gt;"&lt;/STRONG&gt;"C:\Program Files\QlikView\Distribution Service\QVDistributionService" -r="D:\Data\ExampleApp.qvw" -out="d:\Data\logs\ExampleApp.log"&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;This syntax issue was so minor, but I just didn't see it in any discussions or documentation I found.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way, fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 01:23:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-25T01:23:47Z</dc:date>
    <item>
      <title>EXECUTE CMD -out log permissions</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432706#M697936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which account/trustlevel does the EXECUTE command default to when running a CMD operation?&amp;nbsp; What is the simplest way to override that with Admin rights?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm finishing up a batch reloader, which reloads several apps (for group scheduling from QVS), then checks the log files of the apps it reloads to see if they reloaded successfully.&amp;nbsp; It works like a charm on local and test machines, but runs into write permissions when pushed to a client box.&amp;nbsp; The client's IT guy says our login has admin rights, but the following EXECUTE command is unable to write the output log file, even to an output folder that the script itself created:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;EXECUTE cmd.exe /c cd "C:\Program Files\QlikView\Distribution Service\" &amp;amp;&amp;amp;QVDistributionService -r="D:\Data\ExampleApp.qvw" -out="d:\Data\logs\ExampleApp.log"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Also, any existing log files cannot be overwritten, so seeding the directory ahead of time with pre-created files is out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other piece is that I'm able to grab this parsed line from the (failed) batch reloader's log, paste it exactly into a CMD window, and it runs just fine, including creating the log file.&amp;nbsp; So, my account does have proper credentials, but the rights change when the script runs its EXECUTE commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried numerous methods to open up writes for these folders to all authenticated users, and have opened up security within the QV app, including System Access, etc...&amp;nbsp; and am just spinning at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you can provided would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 03:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432706#M697936</guid>
      <dc:creator />
      <dc:date>2013-01-18T03:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE CMD -out log permissions</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432707#M697937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking into RUNAS, but working the password into it could be problematic, due to either manual input or security concerns if I need to expose it somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 03:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432707#M697937</guid>
      <dc:creator />
      <dc:date>2013-01-18T03:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE CMD -out log permissions</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432708#M697938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it's just unusual syntax required here.&amp;nbsp; What's missing is that the entire DOS command needs to be wrapped in double-quotes, regardless of quotations inside the command, because these outer quotes are then NOT passed to the CMD window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...&amp;nbsp; I needed a generated command like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;EXECUTE cmd.exe /c cd &lt;STRONG&gt;"&lt;/STRONG&gt;"C:\Program Files\QlikView\Distribution Service\" &amp;amp;&amp;amp;QVDistributionService -r="D:\Data\ExampleApp.qvw" -out="d:\Data\logs\ExampleApp.log"&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, actually, I don't need to change directories first, so the following is more streamlined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;EXECUTE cmd.exe /c &lt;STRONG&gt;"&lt;/STRONG&gt;"C:\Program Files\QlikView\Distribution Service\QVDistributionService" -r="D:\Data\ExampleApp.qvw" -out="d:\Data\logs\ExampleApp.log"&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;This syntax issue was so minor, but I just didn't see it in any discussions or documentation I found.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way, fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 01:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432708#M697938</guid>
      <dc:creator />
      <dc:date>2013-01-25T01:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE CMD -out log permissions</title>
      <link>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432709#M697939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i face some weird error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i schedule the qvw which contacnt the command to exec, it failed to reload the qvw,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i open by QV desktop and reload manually, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took a look in the log, it says this .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont know why there's E:\TEMP,... it doesnt exist at all....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;4/8/2013 2:02:33 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception=System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\TEMP\rdko40q4.tmp'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters options, String[] sources)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at SolutionGlobal.Compilers.JScriptCompiler.Compile(String i_Source, Action`1 i_ErrorDelegate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.LoadBalancer.Config_ConfigChangedEvent()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.LoadBalancer..ctor()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.ObjectPool.InitObjects(ILogBucket i_LogBucket, eRunLevel i_RunLevel, Func`1 clusterIDListGetFunc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.MainClass.BatchRun(eBatchReloadMode i_BatchReloadMode, String i_BatchReloadDocumentPath, String i_VariableName, String i_VariableValue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Arial;"&gt;4/8/2013 2:02:33 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting exit code to the number of errors. ErrorCount=1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 12:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXECUTE-CMD-out-log-permissions/m-p/432709#M697939</guid>
      <dc:creator />
      <dc:date>2013-04-08T12:49:05Z</dc:date>
    </item>
  </channel>
</rss>

