Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
New to the Cron method need help please!
Results 1 to 4 of 4

Thread: New to the Cron method need help please!

  1. #1

    New to the Cron method need help please!

    Okay for the past three years I have always started my Multi User dungeon this way.

    Assuming a reboot has just occurred;

    shell
    cd /muddir/src
    ./startup port &

    is there not a way to have the boot sequence do this for me and provide a check to ensure it is always running and when not restart it?

    Also, the codebase I am using has a webserver built in that basically captures players names and such and posts it to html files. How do I script that to automatically move the files to my /var/www/html/ directory?

    Thanks again

    Ras

  2. #2

    Re:New to the Cron method need help please!

    hi Ras,
    any chance you had a gander at the cron PET ?
    http://www.linuxjunior.org/cgi-bin/p...play&id=69.

    you can have those run every minute of you like.

    * * * * * sh;cd /muddir/src;./startup port

    the a
    0,30 * * * * mv /dir/files /var/www/html/ would move them every half hour.

  3. #3

    Re:New to the Cron method need help please!

    Tried to follow the pet here is what I typed

    * * * * * sh; cd /home/rastar/afkmud/src; ./startup 2000

    It then returned E348: No string under cursor.

    I hit the : q key and it said No write since last update but a : ! and it escapes with the wording no crontab for rastar - using an empty one
    crontab: no changes made to crontab

    Obviously this is not working at all? Any suggestions on how to create the file so that it will recognize my work?

    I read the pet and while it gave me some help not much and the MAN kinda lacks as well

    Thanks
    Ras

  4. #4

    Re:New to the Cron method need help please!

    hello,
    before you do this try entering export EDITOR=gedit or what ever editor you like, by default it uses vi, not vim or pico.

Similar Threads

  1. returning an array from a java method
    By seanmclemon in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 11-13-2003, 02:16 AM
  2. qmail, confusion on delivery method?
    By cgchris99 in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 05-07-2003, 03:37 AM
  3. MOVED: qmail, confusion on delivery method?
    By pbharris in forum Linux - General Topics
    Replies: 0
    Last Post: 05-07-2003, 02:24 AM
  4. Alternative boot method for Linux/Win2k dual boot
    By Spot in forum Windows - General Topics
    Replies: 8
    Last Post: 10-04-2002, 06:42 AM
  5. Huen's Method
    By CP in forum General Chat
    Replies: 6
    Last Post: 09-10-2002, 12:39 PM

Bookmarks

Posting Permissions

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