Results 1 to 4 of 4

Thread: crontab

  1. #1
    Join Date
    Oct 2006
    Posts
    5

    Unanswered: crontab

    hi, i am using a sh machine

    i have try to use crontab to work like this,

    45 13 * * * say 'Hello' > /dev/console


    but it does not work and in the mail it keep showing

    [unexpected end of line. this entry has been ignored.]


    my program should run at a specified time and after the program run finish, it should show a messege on the screen saying it had finish running the program.

    Can anyone help me with this problem???

    thank you

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    "unexpected end of line" is due to blank lines in your crontab
    Include the path to your "say" script
    Redirect stdout and stderr to a log file that can be inspected later
    45 13 * * * /ckng/scripts/say 'Hello' >/ckng/scripts/say.log 2>&1

  3. #3
    Join Date
    Oct 2006
    Posts
    5
    hi,
    i have try ur way, but it still gives me the same result.

  4. #4
    Join Date
    Oct 2006
    Posts
    5
    hi,
    i am using the say command to show a "hello" on the monitor screen. it means that at 13:45 there will be a messege on my screen showing the word "hello".

Posting Permissions

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