Hi Tom2005
the only way to switch it off without using the power buttons is execution the /sbin/standbyd-spd command
This is also what the shutdown button is doing.
If you are able to make a ssh connection tot the spd8020 using a script on your win7 computer and then execute this command it would do the job
See for instance here how to do it with Putty
http://fixunix.com/ssh/253629-how-pass- ... ecute.htmlAnother possibility could be using a cron job on the spd8020 that runs in the background that switches it off when it finds a certain file in a one of the shared folders on the sp8020.
To do this cron job could execute a command file lets say every hour that is looking if a file with a certain name is present in a share and if it is found executes switching off the nas and before doing that remove the file, this to prevent that after powering on again it switches off again. This file triggering shuttdown you could write from your win7 PC to a share on the spd8020.
When the spd8020 is switched to standby and power is removed and later restored then it will automatically boot.
Below an example command script that will remove the file and executes the /sbin/standbyd-spd command when it finds a file with name "shuttdown-now" (without the quotes) in the share with name "public". You could define a cron job to execute this script every hour or more frequent if you like.
- Code: Select all
#!/bin/sh
if [ -f /share/1000/public/shuttdown-now ]
then
rm -f /share/1000/public/shuttdown-now
/sbin/standbyd-spd
fi
ps when writing a command shell script for linux, be sure you use unix syntax (meaning only <LF> at the end of each line and not DOS syntax using <LF><CR>, command files in dos syntax won't execute the commands...)
I attached the file of the example script
You do not have the required permissions to view the files attached to this post.