<?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: SHELL command output in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11878295#M38940</link>
    <description>&lt;P&gt;Thank you for the info.&lt;BR /&gt;Then, I think the summary goes like this:&lt;/P&gt;&lt;P&gt;- AutoCAD throws away stdout and stderr messages of SHELL commands.&lt;BR /&gt;- There is no user-friendly switch to change this behavior.&lt;BR /&gt;- "Do not cause error in SHELL command; otherwise...." is the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# Thanks to all the people who provided answers.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;# I learned lots of interesting things by asking.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 17:57:47 GMT</pubDate>
    <dc:creator>kazfukuoka</dc:creator>
    <dc:date>2023-04-06T17:57:47Z</dc:date>
    <item>
      <title>SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11875731#M38933</link>
      <description>&lt;P&gt;When I run SHELL command, output from the command is not shown.&lt;BR /&gt;For example, if I type "shell echo hello world", it goes like this.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Command: SHELL&lt;BR /&gt;OS Command: echo hello world&lt;/P&gt;&lt;P&gt;Here, the string "hello world" was discarded.&lt;/P&gt;&lt;P&gt;Also if I type "shell nosuchcommand", it gies like this.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Command: SHELL&lt;BR /&gt;OS Command: nosuchcommand&lt;/P&gt;&lt;P&gt;Here, the error message was not printed.&lt;BR /&gt;Is there any way to see those messages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[additional info]&lt;BR /&gt;It is hard to debug a command script file because&lt;BR /&gt;AutoCAD throws away error messages.&lt;BR /&gt;I am hoping AutoCAD is saving those messages somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[in summary]&lt;BR /&gt;When "SHELL nusuchcommand" is executed,&lt;BR /&gt;Windows prints error message saying "No such command."&lt;BR /&gt;But the error message is swallowed by AutoCAD,&lt;BR /&gt;and there is no way to know the command was bad.&lt;BR /&gt;I am wishing there is a way to see the error&lt;BR /&gt;when the script (.scr file) runs.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 01:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11875731#M38933</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-04-06T01:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876152#M38934</link>
      <description>&lt;P&gt;At&amp;nbsp;&lt;SPAN&gt;OS Command prompt hit Enter to exit into DOS box and then you type Echo Hello World&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 21:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876152#M38934</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-04-05T21:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876206#M38935</link>
      <description>&lt;P&gt;Thank you for the info.&lt;BR /&gt;That surely works for manual operations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was not clear, but I am asking for debugging a script file.&lt;BR /&gt;I am wishing a trick to see the lost error messages.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:22:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876206#M38935</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-04-05T22:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876213#M38936</link>
      <description>&lt;P&gt;try displaying Text Screen with command &lt;STRONG&gt;TEXTSCR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then use an alert to popup a window to pause the script like: &lt;STRONG&gt;(alert"Stop")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you have more than one monitor then you can first position the text screen on the other monitor before running the script or while the alert box is up press Alt+Tab to get to the text screen to see any error messages.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876213#M38936</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-04-05T22:28:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876229#M38937</link>
      <description>&lt;P&gt;Are you talking about a *.scr file in acad/acadlt.exe?&lt;/P&gt;
&lt;P&gt;..all you need is your &lt;STRONG&gt;LOGFILE [F2]&lt;/STRONG&gt;, or?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="link" title="Closes the command history log file opened by LOGFILEON." href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-5F7F109E-56A2-4DC2-8641-7478C24EA7EB" data-url="https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-Core/files/GUID-5F7F109E-56A2-4DC2-8641-7478C24EA7EB.htm" target="_blank"&gt;LOGFILEOFF (Command)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="link" title="Writes the contents of the command history to a file." href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-2FB60E75-7926-4344-91DC-B2A1D9F52163" data-url="https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-Core/files/GUID-2FB60E75-7926-4344-91DC-B2A1D9F52163.htm" target="_blank"&gt;LOGFILEON (Command)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="link" title="Specifies whether the contents of the command history are written to a log file." href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-C0C25385-F210-4834-B7D4-B29C2592D36A" data-url="https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-Core/files/GUID-C0C25385-F210-4834-B7D4-B29C2592D36A.htm" target="_blank"&gt;LOGFILEMODE (System Variable)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="link" title="Specifies the path and name of the command history log file for the current drawing." href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-38D94E23-56D3-4B41-8684-200150A2DDA7" data-url="https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-Core/files/GUID-38D94E23-56D3-4B41-8684-200150A2DDA7.htm" target="_blank"&gt;LOGFILENAME (System Variable)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="link" title="Specifies the path for the command history log files for all drawings in a session." href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-0E2D4DF2-4C26-48AC-ACBC-819E3C46CE59" data-url="https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-Core/files/GUID-0E2D4DF2-4C26-48AC-ACBC-819E3C46CE59.htm" target="_blank"&gt;LOGFILEPATH (System Variable)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and if your Script contain Lisp-(Command statements, make sure CMDECHO is on (1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:35:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876229#M38937</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2023-04-05T22:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876414#M38938</link>
      <description>&lt;P&gt;I appreciate the info.&lt;BR /&gt;But the discussion is going away from what I want.&lt;/P&gt;&lt;P&gt;In short, what I want is this:&lt;BR /&gt;Suppose there is a following line in .scr file.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;SHELL TYPE nosuchfile&lt;/P&gt;&lt;P&gt;This is a bad command. Windows should print a error message&lt;BR /&gt;saying "there is no such file."&lt;/P&gt;&lt;P&gt;However, this error message is not printed anywhere.&lt;BR /&gt;Without seeing the error, it is difficult to tell where things went bad.&lt;BR /&gt;I want a way to see the error message when the script runs.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 00:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876414#M38938</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-04-06T00:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876438#M38939</link>
      <description>&lt;P&gt;this has to do with the way the &lt;STRONG&gt;SHELL&lt;/STRONG&gt; command is coded in the &lt;STRONG&gt;acad.pgp&lt;/STRONG&gt; file which can be found under your windows profile roaming autocad support:&lt;/P&gt;&lt;P&gt;C:\Users\windows-profile\AppData\Roaming\Autodesk\AutoCAD 2020\R23.1\enu\Support\acad.pgp&lt;/P&gt;&lt;P&gt;by default, the &lt;STRONG&gt;SHELL&lt;/STRONG&gt; command is not coded in the acad.pgp to exit to the DOS box for you to see the error messages:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SHELL, , 1,*OS Command: ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Of course you can change that setting to something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SHELL, , 0,*OS Command: ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it'll only impact the station where you made the change.&lt;/P&gt;&lt;P&gt;you can read up on the external command parameters here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-4CE44766-E856-47D4-93E6-D45A3EC6749Bon" target="_blank"&gt;https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-4CE44766-E856-47D4-93E6-D45A3EC6749Bon&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 01:15:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11876438#M38939</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-04-06T01:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11878295#M38940</link>
      <description>&lt;P&gt;Thank you for the info.&lt;BR /&gt;Then, I think the summary goes like this:&lt;/P&gt;&lt;P&gt;- AutoCAD throws away stdout and stderr messages of SHELL commands.&lt;BR /&gt;- There is no user-friendly switch to change this behavior.&lt;BR /&gt;- "Do not cause error in SHELL command; otherwise...." is the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# Thanks to all the people who provided answers.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;# I learned lots of interesting things by asking.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 17:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11878295#M38940</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-04-06T17:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11888455#M38941</link>
      <description>&lt;P&gt;I am having trouble with the shell command in AutoCAD 2020. It works perfectly fine on one cylinder but when I try on another cylinder it does not work and gives an error code of 97026. Please help &lt;SPAN&gt;&lt;A href="https://vidmate.onl/" target="_blank" rel="noopener"&gt;https://vidmate.onl/&lt;/A&gt;&lt;/SPAN&gt;!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11888455#M38941</guid>
      <dc:creator>wanijsena92</dc:creator>
      <dc:date>2023-04-12T21:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: SHELL command output</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11888963#M38942</link>
      <description>Use it on a cylinder? not sure what that means, sorry. Can you elaborate?</description>
      <pubDate>Tue, 11 Apr 2023 20:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/shell-command-output/m-p/11888963#M38942</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-04-11T20:23:37Z</dc:date>
    </item>
  </channel>
</rss>

