![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scheduling bi-weekly through cron | LPT | UNIX for Advanced & Expert Users | 5 | 02-20-2009 11:45 AM |
| Passing arguments to a shell script from file while scheduling in cron | weblogicsupport | SUN Solaris | 4 | 01-27-2008 11:16 PM |
| Problem with scheduling a shell script on cygwin using cron | shash | UNIX for Dummies Questions & Answers | 4 | 08-09-2007 06:08 PM |
| Need help with tasks! | RomeO | UNIX for Dummies Questions & Answers | 1 | 11-23-2005 06:03 PM |
| cron job scheduling | shihabvk | UNIX for Advanced & Expert Users | 1 | 08-22-2005 10:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
scheduling tasks with cron
hello there,
i'm learning about task scheduling with cron and all seems hyper exciting, yeppie. But there is a prob: assume i have a script that needed to be executed at 7am everyday. I could do: vi mycron 00 7 * * * echo hi mother, i wanna be a script daddy. :wq crontab mycron how can i have the shell send the results to my neighbor's email address at unixbuddy@hello.com?. i added mailto: unixbuddy@hello.com in my script but didnt work. Thanks all very much, alikun |
|
||||
|
Quote:
i tried it as follows but had an error "message bad minute" in my file after submitting for crontab. This is what i did: vi mycron 00 7 * * * echo hi mother, i wanna be a script daddy. echo hello | mail -s hello again unixbuddy@hello.com :wq crontab mycron what does "contents" refer to? should hello again be within quotes?. couldn't find the mistake. Thanks a lot, alikun |
|
||||
|
it should be of the following form,
Code:
00 7 * * * echo "hi mother, i wanna be a script daddy." | mail -s "hello again" unixbuddy@hello.com Posted above should work, paste it and save in the cron file ![]() |
|
||||
|
Quote:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|