<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Trigger_perl</id>
	<title>Trigger perl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Trigger_perl"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Trigger_perl&amp;action=history"/>
	<updated>2026-09-18T22:43:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Trigger_perl&amp;diff=9380&amp;oldid=prev</id>
		<title>Philchillbill: /* Purpose */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Trigger_perl&amp;diff=9380&amp;oldid=prev"/>
		<updated>2017-07-24T18:55:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Purpose&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Purpose=&lt;br /&gt;
This script will trigger a perl script every 1 minute as an alternative to running a cronjob. Make sure your perl script starts with a correct shebang line such as #!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
=Dependencies - hardware / software / operating system=&lt;br /&gt;
This script will work on all type of hardware / software / operating system.&lt;br /&gt;
&lt;br /&gt;
It could be used to trigger any perl script such as:&lt;br /&gt;
* [[Domoticz_Pings_any_IP_in_LAN,_and_switching_a_device,_using_Perl | ping_by_ip.pl ]]&lt;br /&gt;
* Any other perl script&lt;br /&gt;
&lt;br /&gt;
=Domoticz Setup - switches, variables, version=&lt;br /&gt;
* Replace ping_by_ip.pl by the name of your perl script&lt;br /&gt;
* Make sure ping_by_ip.pl is located in : /usr/bin/ping_by_ip.pl&lt;br /&gt;
* Make sure ping_by_ip.pl is executable : sudo chmod +x ping_by_ip.pl&lt;br /&gt;
&lt;br /&gt;
=Installation instructions=&lt;br /&gt;
Copy this script to your &amp;#039;&amp;#039;&amp;#039;domoticz\scripts\lua\&amp;#039;&amp;#039;&amp;#039; folder.&lt;br /&gt;
&lt;br /&gt;
=Script with comments=&lt;br /&gt;
 -- Script name : script_time_ping.lua&lt;br /&gt;
 -- This script will trigger a perl script every 1 minute&lt;br /&gt;
 -- Replace ping_by_ip.pl by the name of your perl script&lt;br /&gt;
 -- Make sure ping_by_ip.pl is located in : /usr/bin/ping_by_ip.pl&lt;br /&gt;
 -- Make sure ping_by_ip.pl is executable : sudo chmod +x ping_by_ip.pl&lt;br /&gt;
  &lt;br /&gt;
 commandArray = {}&lt;br /&gt;
 &lt;br /&gt;
 ping_success=os.execute(&amp;#039;ping_by_ip.pl&amp;#039;)&lt;br /&gt;
  &lt;br /&gt;
 if ping_success then&lt;br /&gt;
 print(&amp;quot;ping success&amp;quot;)&lt;br /&gt;
 else&lt;br /&gt;
 print(&amp;quot;ping fail&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
  &lt;br /&gt;
 return commandArray&lt;br /&gt;
&lt;br /&gt;
=Example of use (if relevant) i.e. output files / screen displays=&lt;br /&gt;
N/A&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Setup]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:Perl]]&lt;/div&gt;</summary>
		<author><name>Philchillbill</name></author>
	</entry>
</feed>