![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| performing a task at regular intervals | mridula | High Level Programming | 2 | 11-14-2005 05:26 AM |
| Date Intervals | yongho | Shell Programming and Scripting | 7 | 07-29-2005 04:19 PM |
| How to perform Date Intervals? | yongho | Shell Programming and Scripting | 2 | 06-21-2005 11:02 AM |
| Mailing an attachment | gayath3 | UNIX for Dummies Questions & Answers | 4 | 03-21-2005 01:02 AM |
| Schedule a Batch file to delete files at particular intervals | Indom | Windows & DOS: Issues & Discussions | 6 | 02-04-2004 12:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi all,
i wrote a script to mail myself using pine (modified) to keep remind of b'days. #!/bin/bash grep "`date +%D |awk -F/ '{print $2+1, $1+0}'`" dataFile >/home/username/mailme if test -s /home/username/mailme then pine -I '^X,y' -subject "Birthday Remainder" username </home/username/mailme fi -- dataFile is of format: 6 12 Myla i.e day month name --- now, when i try run it thru crontab at regular interval it doesn't run. i can run the script thru commandline and it works. but thru cron, it doesn't what should i do? --- also is there any other way to mail oneself in scripts? (using fedora core 4 and our mail server doesn't require authentication) thanx alot for help.... Last edited by timepassman; 08-19-2005 at 12:52 PM.. |
|
|||||
|
The reason for you ploblem is that cron has a minimal environment, most likely it is not finding pine. There are other ways to do what you want. See this forum
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|