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. not getting top output when cron runs script
    By caligal in forum Linux - General Topics
    Replies: 1
    Last Post: 01-14-2007, 10:30 PM
  2. SQL Server 2k win CE edition FAQ
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 01:59 AM
  3. Huen's Method
    By CP in forum General Chat
    Replies: 6
    Last Post: 09-10-2002, 12:39 PM
  4. Problem with setting up Cron in RH 7.2
    By Compunuts in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 04-07-2002, 05:28 PM
  5. Slack 8 and crond - cron not running?
    By ph34r in forum Linux - General Topics
    Replies: 0
    Last Post: 01-08-2002, 05:54 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
  •