Wake On Lan using scheduled tasks

Hi
I'm using Openwrt 24.10.1 and got the problem with schedule tasks. this syntax worked for me in previous versions: " 00 07 * * * etherwake -D "FC:AA:14:6C:B5:79" 2>&1" but not now. The systemlog does indicate the command is executed at set time but the target does not wake up.

if I paste it into command line, it works; and I can also use LUCI to wake the target up.

Please help!
Thanks

start by adding full path to the etherwake bin.

3 Likes

Yes. but it did not work neither.Here is the log.
Thu May 8 17:50:00 2025 cron.err crond[24840]: USER root pid 30550 cmd /usr/bin/etherwake -D "FC:AA:14:6C:B5:78" 2>&1

If I paste the command in CLI:
The target station address is FC:AA:14:6C:B5:78.
Packet is fc aa 14 6c b5 78 fc aa 14 6c b5 78 08 42 ff ff ff ff ff ff fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78 fc aa 14 6c b5 78.
Sendto worked ! 116.

The -D option increases the debug level. Why are you using it in a cron job?

Better try specifying the correct interface, e.g.

0 7 * * * /usr/bin/etherwake -i br-lan FC:AA:14:6C:B5:79 >/dev/null 2>&1
2 Likes

Thanks, it works now. I use -D because I just copied it many years ago.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.