LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2018, 12:40 AM   #1
Babuketha
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
Send an email reminder in every 30days using ftp


Hi friends, Actually i don't know how to use cron job in ftp to sending email reminder.Please help me
 
Old 10-25-2018, 12:57 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The crontab(5) man page tells you how to define an activity once a month. I don't know if it's possible to do something every 30 days; you may be more successful with the at command.

To do something at midnight on the first day of the month:

Code:
$ crontab
1 0 1 * *     something
The first number is the minute, then the hour, day of month, month and day of week. Asterisks mean "any".

Alternatively:
Code:
$ crontab
@monthly      something
Now, I can't tell you how to send an email reminder via ftp. Perhaps you can elaborate what you mean by that. But I can tell you how to send an email reminder:
Code:
$ crontab
@monthly    echo "don't forget to tie your shoelaces" | mailx -s Reminder you@yourdomain.org
You could also do it this way:
Code:
$ crontab
@monthly    echo "don't forget to tie your shoelaces"
since cron sends you command output in an email, but in this case you have no control over the recipient nor the subject.
 
2 members found this post helpful.
Old 10-25-2018, 01:09 AM   #3
Babuketha
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you
 
  


Reply



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
find and update an meeting date from daily schelude and send reminder to members smahb001 Linux - Newbie 4 02-06-2012 08:13 PM
[SOLVED] email notification and reminder alphatest Linux - Software 4 10-14-2010 12:35 PM
crontab email reminder jdwalk Linux - Newbie 3 03-04-2010 04:51 AM
Trying to setup mailing list and annual email or text message reminder desjazz Ubuntu 1 02-14-2007 09:05 PM
egroupware forum, email reminder howto> pudhiyavan Linux - Software 0 12-24-2004 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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