<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dpstech</id>
		<title>FOG Project - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dpstech"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Special:Contributions/Dpstech"/>
		<updated>2026-04-06T05:15:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=How_to_use_the_wakeonlan_perl_script_instead_of_etherwake.exe&amp;diff=2115</id>
		<title>How to use the wakeonlan perl script instead of etherwake.exe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=How_to_use_the_wakeonlan_perl_script_instead_of_etherwake.exe&amp;diff=2115"/>
				<updated>2010-03-23T19:19:10Z</updated>
		
		<summary type="html">&lt;p&gt;Dpstech: New page: I had a problem with etherwake.exe when crossing multiple subnets and could not get Wake On Lan to work so I tried the wakeonlan perl script located here /usr/bin/, with some minor edits t...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I had a problem with etherwake.exe when crossing multiple subnets and could not get Wake On Lan to work so I tried the wakeonlan perl script located here /usr/bin/, with some minor edits to the wol.php file located here /var/www/fog/wol/. Wakeonlan perl script allows you to add subnet masks using the -i switch and that is what I had to do for each subnet I needed to reach. &lt;br /&gt;
&lt;br /&gt;
Below is a sample copy of my wol.php file...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
require_once( &amp;quot;../commons/config.php&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
$conn = mysql_connect( MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD);&lt;br /&gt;
if ( $conn )&lt;br /&gt;
{&lt;br /&gt;
	@mysql_select_db( MYSQL_DATABASE );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
require_once( &amp;quot;../commons/functions.include.php&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
$mac = $_GET[&amp;quot;wakeonlan&amp;quot;];&lt;br /&gt;
if ( isValidMACAddress( $mac ) )&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
	$wol = &amp;quot;/usr/bin/wakeonlan&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	exec ( &amp;quot;$wol -i 10.1.1.255 $mac&amp;quot; );&lt;br /&gt;
        exec ( &amp;quot;$wol -i 10.2.2.255 $mac&amp;quot; );&lt;br /&gt;
	exec ( &amp;quot;$wol -i 10.3.3.255 $mac&amp;quot; );&lt;br /&gt;
	exec ( &amp;quot;$wol -i 10.4.4.255 $mac&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dpstech</name></author>	</entry>

	</feed>