<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Launching tail-f from the command line.]]></title><description><![CDATA[<p dir="auto">Is it possible to launch the “Monitor (tail-f)” when opening notepad++ ? I’m trying to automate this when opening notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19247/launching-tail-f-from-the-command-line</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 22:27:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19247.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Apr 2020 01:40:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 15:37:43 GMT]]></title><description><![CDATA[<p dir="auto">This PS, saved as <a href="http://startup.py" rel="nofollow ugc">startup.py</a> (user NOT machine and PS configuration changed from LAZY to ATSTARTUP) should do the trick</p>
<p dir="auto"><img src="/assets/uploads/files/1587224222184-e6fb0b18-db39-4bab-a14c-ebdea5b99411-image.png" alt="e6fb0b18-db39-4bab-a14c-ebdea5b99411-image.png" class=" img-fluid img-markdown" /></p>
<pre><code class="language-py">from Npp import notepad, MENUCOMMAND
if '-tailmode' in notepad.getCommandLine():
    notepad.menuCommand(MENUCOMMAND.VIEW_MONITORING)
</code></pre>
<p dir="auto">and npp like this <code>notepad++.exe -multiInst -nosession "FULL_PATH_OF_THE_FILE" -z -tailmode</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/52805</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52805</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 15:37:43 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 15:28:46 GMT]]></title><description><![CDATA[<p dir="auto">I was wrong, there is a way to provide <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/3de506bf48c53c424ef1e52d623f1d949465102b/PowerEditor/src/winmain.cpp#L325" rel="nofollow ugc">user parameters</a>.</p>
<p dir="auto">By this we could start npp with something like <code>notepad++.exe  -multiInst -nosession -z -tailmode</code></p>
<p dir="auto">and would be able to get it up and running</p>
<p dir="auto"><img src="/assets/uploads/files/1587223700232-46f2ec37-183d-4597-9787-66e2fe10c988-image.png" alt="46f2ec37-183d-4597-9787-66e2fe10c988-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/52804</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52804</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 15:28:46 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 15:15:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">maybe I’m, again, not seeing the wood because of the trees.<br />
Let me try to explain what I understand so far.</p>
<p dir="auto">There is an running (or not as it doesn’t matter from my understanding) npp instance.<br />
Now you click on the explorer context menu “open with npp in tail mode”.<br />
This shortcut must be configured, of course, with something like <code>npp -multiInst -?</code><br />
If that new instance starts up it will execute <a href="http://startup.py" rel="nofollow ugc">startup.py</a><br />
And here we would check against the -? flag and act accordingly.</p>
<p dir="auto">Is that what you are talking about or do I have a plank at my head?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52803</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 15:15:48 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 15:06:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">But I mean, to follow the OP’s example, maybe I have N++ running then I next want to run tail on a file, so I use Explorer with my special “tail with Notepad++” rightclick.  I guess there would be no good way to do the trapping with P.S., even if Notepad++ interface to get the command line was better than it is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52802</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52802</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Apr 2020 15:06:38 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 14:38:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">you query the current instance, so you should always get the<br />
commandline parameters associated whit this instance,<br />
regardless if multiInst is used or not.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52798</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52798</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 14:38:21 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:32:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<blockquote>
<p dir="auto">you cannot set a custom parameter but the question mark seems to work.</p>
</blockquote>
<p dir="auto">Ah.</p>
<p dir="auto">Presuming it worked more fully, more questions arise:</p>
<ul>
<li>
<p dir="auto">I have a Explorer right-click “edit with N++” thing that I often use to pull into an existing N++ instance already running.  If one queried the command line after that, would they see the original command line, or the one from the right-click?</p>
</li>
<li>
<p dir="auto">Does a multiple instance invoked from the first instance impact?</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/52797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52797</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:32:12 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:23:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">the issue is, that you cannot set a custom parameter but the question mark seems to work.<br />
But I haven’t really checked the commandline code to see if there is<br />
a possible workaround.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52796</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52796</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">It would serve as a good example of “adding a custom command line parameter to Notepad++” for future readers as well, who might have different need than “tail”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52795</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52795</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:20:45 GMT]]></title><description><![CDATA[<p dir="auto">If OP wants to go that way - maybe. ;-D</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52794</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52794</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:19:02 GMT]]></title><description><![CDATA[<p dir="auto">Probably <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> will come up with a nice, short, fully working example for the OP. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52792</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52792</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:19:02 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 13:14:41 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">put the code to do this in its “startup” script.</p>
</blockquote>
<p dir="auto">preferable a “user” <a href="http://startup.py" rel="nofollow ugc">startup.py</a> and in addition one needs to<br />
change the PS configuration from LAZY to ATSTARTUP.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52790</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52790</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 13:14:41 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 12:56:05 GMT]]></title><description><![CDATA[<p dir="auto">To use a scripting plugin like Pythonscript like <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> suggests, you’d have to put the code to do this in its “startup” script.</p>
<p dir="auto">I suppose you’d also have to have some mechanism to tell it which file you wanted to put in “tail” mode, as the typical remembered session contains more than one file, and you probably wouldn’t want to put ALL files in “tail” mode.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52787</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Apr 2020 12:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to Launching tail-f from the command line. on Sat, 18 Apr 2020 11:59:18 GMT]]></title><description><![CDATA[<p dir="auto">No, the <a href="https://npp-user-manual.org/docs/command-prompt/" rel="nofollow ugc">possible commandline parameters</a> do not include it.<br />
One could, depending on how complicated stuff goes, use one of the scripting plugins like PythonScript(PS) or NppExec to try to solve it.<br />
For example, PS has notepad.getCommandLine method if you would<br />
start npp with something like <code>notepad++.exe -multiInst -?</code> you can<br />
check for the question mark and call <code>notepad.runMenuCommand('View', 'Monitoring (tail -f)')</code> if needed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52785</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Apr 2020 11:59:18 GMT</pubDate></item></channel></rss>