If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > crontab

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-06, 22:52
ckng ckng is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
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
Reply With Quote
  #2 (permalink)  
Old 10-11-06, 02:38
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
"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
Reply With Quote
  #3 (permalink)  
Old 10-11-06, 03:11
ckng ckng is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
hi,
i have try ur way, but it still gives me the same result.
Reply With Quote
  #4 (permalink)  
Old 10-11-06, 03:15
ckng ckng is offline
Registered User
 
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".
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On