This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Autostart WakeOnLan

Tags: None
(comma "," separated)
Atilius
Registered Member
Posts
4
Karma
0

Autostart WakeOnLan

Wed Dec 11, 2013 6:47 pm
Hello, please, how should I make a command for WakeOnLan to be started when network is ready and KDE initiated?

I have tried: System settings -> Starting and finishing (I translate it from my localisation) ->Automatic start - File with script - here I have put link to bash script which contains:

Code: Select all
#!/bin/bash
#
wol [i]MAC adress[/i] 


The script is set to be executable by user.

But it doesnt work.

Thank you,
Martin
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Autostart WakeOnLan

Wed Dec 11, 2013 9:59 pm
Are you attempting to wake up another computer, or set your own up so that it will respond to wake on lan commands?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Atilius
Registered Member
Posts
4
Karma
0

Re: Autostart WakeOnLan

Thu Dec 12, 2013 5:51 am
Hi, it should wake up NAS. In command line it works. Thank you.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Autostart WakeOnLan

Fri Dec 13, 2013 5:57 am
Is the "wol" tool located in a normal location? Does providing the full path to the binary have any effect?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Atilius
Registered Member
Posts
4
Karma
0

Re: Autostart WakeOnLan

Fri Dec 13, 2013 7:24 am
Is the "wol" tool located in a normal location?

- I dont know - it is just installed via YAST so I guess it is.

Does providing the full path to the binary have any effect?

- I havent tried because I dont know the location :) In any case if I use terminal and write the command, it works.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Autostart WakeOnLan

Fri Dec 13, 2013 10:22 pm
You can use "which" to determine where the "wol" tool is installed.
Code: Select all
which wol


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Atilius
Registered Member
Posts
4
Karma
0

Re: Autostart WakeOnLan

Sat Dec 14, 2013 8:29 am
I have tried to modify called file from Autostart and add complete path but no change.

Is there any log to read whati's happening when the file should run?

Thank you,

Martin
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Autostart WakeOnLan

Sat Dec 14, 2013 10:55 pm
There is no individual log file unfortunately, only the general ~/.xsession-errors file, which is filled with numerous other application's output as well.
Just to confirm, the startup script has a .sh extension, is executable and has a shebang which is valid correct?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]