home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
scriptedlogon
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="routerunner" data-source="post: 233157" data-attributes="member: 57212"><p>Hi,</p><p></p><p>I've been very interested to your scriptedlogon in particular to the WOL functionalities which I desperately need. </p><p></p><p>I'm still investigating that but it looks like that the START_LISTENING_WOL cause scripteditlogon to crash mysteriously without telling me why. It looks like there is a clash with the TCP/IP stack somehow. </p><p></p><p>As follow the copy of the script which fails to run correctly. Basically I have a system which is constantly on during the day which runs my website and I thought to use your script as a gateway to wake up my server when I need from the office for instance without exposing the server to the internet directly. The script is very simple it polls the MAC address of the system running the website every second and in case of incoming request sends a WOL packet to the server:</p><p></p><p>//</p><p>// This script will listen to the magic packet</p><p>// in order to wake up the server from internet</p><p>//</p><p></p><p>//</p><p>// Reset the log</p><p>//</p><p>log_reset</p><p>log_level error</p><p></p><p>//</p><p>// Main Loop</p><p>//</p><p>: WAIT_FOR_WOL</p><p>start_listening_wol <this PC MAC></p><p>if not last_command_succeeded</p><p> goto STOP_SNIFFING</p><p>// Received a wake up request in the last second ?</p><p>if last_received_wol 1</p><p> // Received the Magic Packet so Wake up the server</p><p> send_wol <server MAC></p><p></p><p>//</p><p>// Stop Sniffing</p><p>//</p><p>: STOP_SNIFFING</p><p>// give some time to the CPU</p><p>wait 1000</p><p>// stop sniffing at the interface</p><p>stop_listening_wol</p><p>// do it forever</p><p>goto WAIT_FOR_WOL</p><p></p><p>//</p><p>// End of script</p><p>//</p><p></p><p></p><p>Any thought will be highly appreciated</p><p></p><p>thanx</p><p>routerunner</p></blockquote><p></p>
[QUOTE="routerunner, post: 233157, member: 57212"] Hi, I've been very interested to your scriptedlogon in particular to the WOL functionalities which I desperately need. I'm still investigating that but it looks like that the START_LISTENING_WOL cause scripteditlogon to crash mysteriously without telling me why. It looks like there is a clash with the TCP/IP stack somehow. As follow the copy of the script which fails to run correctly. Basically I have a system which is constantly on during the day which runs my website and I thought to use your script as a gateway to wake up my server when I need from the office for instance without exposing the server to the internet directly. The script is very simple it polls the MAC address of the system running the website every second and in case of incoming request sends a WOL packet to the server: // // This script will listen to the magic packet // in order to wake up the server from internet // // // Reset the log // log_reset log_level error // // Main Loop // : WAIT_FOR_WOL start_listening_wol <this PC MAC> if not last_command_succeeded goto STOP_SNIFFING // Received a wake up request in the last second ? if last_received_wol 1 // Received the Magic Packet so Wake up the server send_wol <server MAC> // // Stop Sniffing // : STOP_SNIFFING // give some time to the CPU wait 1000 // stop sniffing at the interface stop_listening_wol // do it forever goto WAIT_FOR_WOL // // End of script // Any thought will be highly appreciated thanx routerunner [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
scriptedlogon
Contact us
RSS
Top
Bottom