sto;518376 Wrote: 
> I did a bit of experimentation with the SrvrPowerCtrl function to run an
> external script that showed Powernap that SBS was playing but it just
> kept hanging SBS. The script I created was just 'sleep 60' then I added
> the name of the script to the powernap config file, the script stayed in
> the process list for the duration of the sleep but like I say for some
> reason SBS kept hanging, I need to have another go...
You did start sleep in the background (with "&"), did you ? Because it
looks like SBS could have been waiting for the sleep to end before
returning.

Something like this detaches properly:
Code:
--------------------
    o...@otto:~$ date
  Thu Feb 18 23:37:28 CET 2010
  o...@otto:~$ sleep 30 &
  [1] 7860
  o...@otto:~$ date
  Thu Feb 18 23:37:37 CET 2010
  o...@otto:~$ ps
  PID TTY          TIME CMD
  7814 pts/0    00:00:00 bash
  7860 pts/0    00:00:00 sleep
  7863 pts/0    00:00:00 ps
  o...@otto:~$ date
  Thu Feb 18 23:38:01 CET 2010
  o...@otto:~$ 
  [1]+  Done                    sleep 30
  o...@otto:~$ date
  Thu Feb 18 23:38:13 CET 2010
  o...@otto:~$ 
--------------------


-- 
epoch1970

Daily dose delivered by: 2 SB Classic (fw 130), 1 SB Boom (fw 50) •
SqueezeCenter 7.3.4 (Debian 5.0) with plugins: ContextMenu,
SaverSwitcher by Peter Watkins • Server Power Control by Gordon Harris •
WeatherTime by Martin Rehfeld • IRBlaster by Gwendesign (Felix) •
FindArt, CDplayer by bpa • BBC iPlayer, SwitchPlayer by Triode •
PowerSave by Jason Holtzapple • TrackStat by Erland Isaksson.
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=75396

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to