Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23

Thread: Question about Cron

  1. #16
    OK.

    I own a WL500gp, with WL500gp-1.9.2.7-d-r599.trx

    I want to send to myself an email with the router IP after each login to PPPoE (login automaticaly or manualy).

    I put that "command" to /tmp/local/sbin/post-firewall, but maybe there is a better solution.

  2. #17
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by Tomason View Post
    I put that "command" to /tmp/local/sbin/post-firewall, but maybe there is a better solution.
    ?? Which command?
    Well, what do you expect? I guess there is nobody who want to do everything for you.

    So you have to use the search function, install what you need and write your own script.

    I would suggest to install at first according wengis howto - further I can help you a bit with scripting, but you must determine the needed software and manuals and how you want to do the things.

    Have a look at this list - all this is available for your router.
    http://ipkg.nslu2-linux.org/feeds/op...table/Packages

    for instance: esmtp could be useful......

    have fun
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  3. #18

    Exclamation

    Thank you for nothing

    I love this forum, a lot of questions whitout answers...

    For your information I used search function, I tryed to do it myself but I need some help.

    I have a solution that is working, but maybe there is a better solution.

    Maybe somebody else can help me, or not

    The question is:
    If I want to execute a script every time the router establishes a connection (PPPoE) automaticaly or manualy, where must I put this script?

    If somebody can / want to help I say THANK YOU.


  4. #19
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by Tomason View Post

    The question is:
    If I want to execute a script every time the router establishes a connection (PPPoE) automaticaly or manualy, where must I put this script?

    If somebody can / want to help I say THANK YOU.

    Well, just do a
    Code:
    echo $PATH
    those are the places where you can store the script....on any linux....
    be aware, when storing the script into routers flash, you must store the path to your script too: (for example)
    Code:
    echo /usr/sbin/yourscript >> /tmp/local/.files
    chmod 755 /usr/sbin/yourscript
    flashfs save
    flashfs commit
    flashfs enable
    reboot
    When storing to /opt/sbin or opt/bin just store your script, nothing else is needed.

    Do not forget to make your script executeable:
    [
    Code:
    chmod 755 /where_your_script_is/name_of_script
    Thats it!
    As you already have a working solution and it seems that you know already linux, it should not be a big deal.

    Further, you can store your script anywhere, just make script executeable and use full path when calling your script.
    Would be nice to let us know, how you got your solution working...

    In case that nothing is installed according wengis howto or similar , it will be a hard task.

    Have fun.....
    Last edited by newbiefan; 21-09-2009 at 19:31.
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  5. #20
    OK, but where is the ...

    .. every time the router establishes a connection (PPPoE) automaticaly or manualy ..

  6. #21
    Quote Originally Posted by Tomason View Post
    OK, but where is the ...

    .. every time the router establishes a connection (PPPoE) automaticaly or manualy ..
    Normally you would name the script ip-up and place it in /etc/ppp

  7. #22
    There is a /tmp/ppp/ip-up (and ip-down) = symlink to /sbin/rc


    AND you mean I must create a new subdirectory ppp in directory etc, with ip-up inside?

    /etc/ppp/ip-up = /tmp/etc/ppp/ip-up

    THANK YOU

  8. #23

    mini_sendmail

    And to help some more here is what I use to send a email.

    http://wl500g.info/showthread.php?p=119188&#post119188

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Установка RRDTool и CRON на роутер
    By dizzy128 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 173
    Last Post: 16-04-2012, 17:35
  2. Old two USB Printers question and internet problem.
    By tiagoaleks in forum WL-500gP Q&A
    Replies: 0
    Last Post: 12-09-2007, 11:52
  3. Hide cron from log?
    By Rejan in forum WL-700g Q&A
    Replies: 2
    Last Post: 06-07-2007, 13:57
  4. unslung cron ipkg problem
    By bubieyehyeh in forum WL-HDD Q&A
    Replies: 4
    Last Post: 06-06-2006, 18:06
  5. cron op wl500/g
    By jozef in forum Dutch Discussion - Nederlands
    Replies: 1
    Last Post: 15-04-2006, 19:03

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •