LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   problem with wakeonlan (https://www.linuxquestions.org/questions/ubuntu-63/problem-with-wakeonlan-847851/)

mahmoodn 12-02-2010 01:42 AM

problem with wakeonlan
 
I have wrote a script that every time I (or my friends) turn on the computer, it will send the IP address via email to me before login. It is fine and works properly.

I also have installed ethtools and the problem is if I turn on the computer via "wakeonlan <MAC address>" from another computer in the LAN, I won't receive any email however the computer has been woke up. Any idea for that?

eSelix 12-02-2010 04:43 AM

Invoke your script in some system startup files: /etc/rc*, /etc/init.d or /etc/event and not when user login.

mahmoodn 12-02-2010 05:20 AM

It was in the wrong rc* (run level). I fixed it and thanks for the tip


All times are GMT -5. The time now is 03:55 PM.