<?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 print to stdout from executable on MacOS in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935621#M109130</link>
    <description>&lt;P&gt;I was wondering if there is a way to print to stdout on MacOS when running a jsl executable. the print command prints to the log, which is lost once the executable finishes.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2026 11:30:05 GMT</pubDate>
    <dc:creator>shuey</dc:creator>
    <dc:date>2026-03-17T11:30:05Z</dc:date>
    <item>
      <title>print to stdout from executable on MacOS</title>
      <link>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935621#M109130</link>
      <description>&lt;P&gt;I was wondering if there is a way to print to stdout on MacOS when running a jsl executable. the print command prints to the log, which is lost once the executable finishes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 11:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935621#M109130</guid>
      <dc:creator>shuey</dc:creator>
      <dc:date>2026-03-17T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: print to stdout from executable</title>
      <link>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935633#M109132</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="JSL write to stdout" uid="457848" url="https://community.jmp.com/t5/Discussions/JSL-write-to-stdout/m-p/457848#U457848" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and in general Craige has some posts somewhat related to this&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 15:07:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935633#M109132</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-03-16T15:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: print to stdout from executable</title>
      <link>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935742#M109137</link>
      <description>&lt;P&gt;I believe I have found a solution below. however I was wondering if this workaround is the easiest.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;stdout_print = Function({msg},
	{_tty},
	Run Program(
		Executable("/bin/sh"),
		Options({"-c", "ps -o tty= -p $(ps -o ppid= -p $(ps -o ppid= -p $$)) | tr -d ' ' &amp;gt; /tmp/jmp_tty.txt"})
	);
	Wait(1);
	_tty = "/dev/" || Trim(Load Text File("/tmp/jmp_tty.txt"));
	Run Program(
		Executable("/bin/sh"),
		Options({"-c", "echo '" || msg || "' &amp;gt; " || _tty})
	);
);

stdout_print("hello");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2026 11:45:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/print-to-stdout-from-executable-on-MacOS/m-p/935742#M109137</guid>
      <dc:creator>shuey</dc:creator>
      <dc:date>2026-03-17T11:45:06Z</dc:date>
    </item>
  </channel>
</rss>

