LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2005, 11:48 AM   #1
piyushiitk
Member
 
Registered: Jul 2004
Location: kanpur, india
Distribution: Fedora Core 4
Posts: 31

Rep: Reputation: 15
Unhappy mailing myself at regular intervals...


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 piyushiitk; 08-19-2005 at 11:53 AM.
 
Old 08-19-2005, 12:12 PM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
I use birthday utility - Display information about pending events on login or even you can try remind - a sophisticated reminder service
 
Old 08-19-2005, 01:32 PM   #3
piyushiitk
Member
 
Registered: Jul 2004
Location: kanpur, india
Distribution: Fedora Core 4
Posts: 31

Original Poster
Rep: Reputation: 15
i guess i asked the solution to prob. also what is remind utility? where to find/download it?
 
Old 08-19-2005, 03:15 PM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Did you put the full path to your script in the crontab entry? I think cron usually runs things with a limited PATH setup.
 
Old 08-21-2005, 10:26 AM   #5
piyushiitk
Member
 
Registered: Jul 2004
Location: kanpur, india
Distribution: Fedora Core 4
Posts: 31

Original Poster
Rep: Reputation: 15
got it..thanx full path was missing..
also found another way using a perl script :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting audio files at specific time intervals quickfix Linux - Software 2 08-26-2005 07:18 AM
Need Help With Mailing! linuxnoob7 Linux - Software 14 08-15-2005 10:14 AM
How to allow and disallow at intervals chomps Linux - Security 1 11-26-2004 09:56 AM
Running a PHP function at timed intervals linux_pioneer Programming 5 09-26-2004 01:22 PM
Mailing a file on a regular basis Sn7 Linux - Software 4 07-19-2004 08:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration