[EMAIL PROTECTED] writes:

Hi Chris

> I am trying to get wake-on-lan working for my installation.
>
> I tried '$Conf{DumpPreUserCmd} = "/usr/share/wol.sh $host";' and this didn't
> work for me. Has anyone else had success with this?
>
> I have gotten as far as implementing the Net::Wake perl module from within
> BackupPC_dump perl script.
>
> This correctly wakes the PC but I still get a 'Host not found' error
> message. I assume this is because whilst the PC has woken it has not
> connected to the network in time for BackupPC to find it.
>
> In short am I approaching this the right way? If I am how do I introduce a
> delay between the wake command being issued and BackupPc continuing?

I am not very familiar with wake on lan, but you could insert a sleep
in you DumpPreUserCmd.

An easy way to do it is to insert a sleep in the end of wol.sh, if you
don't want to change anything in this script, just do another one
which calls wol.sh for you and insert the sleep in the end.

The one bellow should be enough, save it and put it in DumpPreUserCmd.

---------------
#!/bin/bash

wol.sh $1

sleep 1m

---------------

Rodrigo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to