Posts: 520
Joined: Jun 2011
Reputation:
2
I have my main htpc set to suspend after 30 mins of inactivity.
Is there a way to stop it suspending when another xbmc machine is on? Is there someway to reset the idle timer remotely?
Posts: 351
Joined: Sep 2009
Reputation:
2
I use a xcript to check if there is any net activity on my server
[code]
!/bin/bash
#test connexion SSH HTTPS et NFS
connexionSSH=$((netstat -n | grep ESTA) | grep -c 10000)
connexionhttps=$((netstat | grep ESTA)| grep -c https)
connexionSMB=$((netstat | grep ESTA) | grep -c microsoft)
connexionTVHeadend=$((netstat -n | grep ESTA) | grep -c 9982)
connexionNFS=$((netstat | grep ESTA) | grep -c nfs)
connexionUsenet=$((netstat | grep ESTA) | grep -c newszilla)
echo shh
echo $connexionSSH
echo subsonic
echo $connexionhttps
echo nfs
echo $connexionNFS
echo tv
echo $connexionTVHeadend
echo smb
echo $connexionSMB
echo usenet
echo $connexionUsenet
if [ $connexionSSH -eq 0 ] && [ $connexionNFS -eq 0 ] && [ $connexionhttps -eq 0 ] && [ $connexionTVHeadend -eq 0 ] && [ $connexionSMB -eq 0 ] && [ $connexionUsenet -eq 0 ]
then
pm-suspend
fi
exit 0
{/code]