For those people using putty to SSH into the My Cloud. There is a program called plink.exe. This file can be downloaded the following site.
The line below when run from a powershell window will display a list of all files in “Shared Videos” Note the “” before the space character. This is necessary. In quotes put your password. You could also put your password in the script. But either way your password will display on the command line. Better to enter it as you run it. That way its not saved on disk.
.\plink root abbotandcostello “password” “ls -l /nfs/Public/Shared\ Videos”
If you have the sleep.awk code in the Public directory the following code will list the sleep information.
.\plink root abbotandcostello “password” “sh /nfs/Public/sleeptime.sh”
This code would reboot the My Cloud
.\plink root abbotandcostello “password” “reboot”
This code would shutdown the My Cloud
.\plink root abbotandcostello “password” “shutdown”
save the following three lines as plink.ps1
write-host $server $args $args
f:\plink.exe -ssh $server -pw $args $args $args $args