Timed Scripts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Timed Scripts
# 1  
Old 09-09-2010
Timed Scripts

Hi all

I need a little bit of help, i am looking for a script that can have different events in it and then if it is a certain day email me about it

some sort of email reminder system

any ideas

thanks
# 2  
Old 09-10-2010
If you are looking for a repeated reminder, check out cron/crontab:
https://www.unix.com/answers-frequent...n-crontab.html
If you are looking for a one-time reminder, check out the command at.
To send a mail, just use the mail command.

If you get stuck at a particular point, don't hesitate to ask.
# 3  
Old 09-10-2010
You can set cronjob for that script. And the output of that script you can direct to some file (say temp.txt) and then you can send that file via mail command to as many users as you want.
Mail command syntax is
uuencode [dir/filename] [filename] | mailx -s “subject” mail@address.com
or cat temp.txt | mailx -s "Subject_Name" dhruvak_chokshi@persistent.com abc@xyz.com
# 4  
Old 09-10-2010
Using cronjobs was what i was going to do but thay only allows for montly things, what about if i want to have a reminder for say 11 of October ?
# 5  
Old 09-10-2010
As already stated, use at instead then.

Example:
Code:
$> at 11 Oct 2010
warning: commands will be executed using /bin/sh
at> echo yo
at> <EOT>
job 7 at Mon Oct 11 09:30:00 2010
$> atq
7       Mon Oct 11 09:30:00 2010 a root

At this date, the echo will be fired off and disappear from the at queue.
For using a whole script, use the -f option to hand over a file.

Last edited by zaxxon; 09-10-2010 at 04:34 AM.. Reason: added info
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

RCP command timed out

I HAVE A PERL SCRIPT WHICH RCP files from one server to another. The script is not having any issues for years and it is running for more than 3 years . Last week it had failed with error "Command timed out " error. Please help me out (3 Replies)
Discussion started by: praviper
3 Replies

2. Solaris

I/O timed out

I have Ultra 45 Sun solaris box with Solaris 10 installed. My problem is when i boot the unix box, i got the message: What does this message meant? then it does not continue to boot successfully. Please help. Thanks in advance. (5 Replies)
Discussion started by: etcpasswd
5 Replies

3. AIX

Difference between timed and xntpd ?

Hi, Looks like these perform similar function. What is the difference ? thanks Vilius (1 Reply)
Discussion started by: vilius
1 Replies

4. Programming

Timed wait?

Is there any way in which I can make my wait signal to wait for a specified time for child job to complete. And if that time is over, the program gets out of the wait signal to process other things (4 Replies)
Discussion started by: anjul_thegreat
4 Replies

5. HP-UX

connection timed out

I am trying to connect with my hp machine using "dialup networking." It times out after 30 seconds. Is there a way to adjust this time. Would it have anything to do with rexec? thanks (0 Replies)
Discussion started by: paschal
0 Replies

6. Solaris

in.timed log entries

Hi there, my logs are being filled up with the following Nov 30 05:16:08 my-box in.timed: connect from localhost Nov 30 05:16:09 my-box in.timed: connect from my-other-box Nov 30 05:16:10 my-box in.timed: connect from my-other-box Nov 30 05:16:10 my-box in.timed: connect from... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

7. UNIX for Dummies Questions & Answers

timed commands

Hello, How can I set up events to be executed at a certain time? And do I need some kind of privilege such as being in cron group? (2 Replies)
Discussion started by: rayne
2 Replies

8. Programming

How to Get Timed Input using cin

Hi, I am trying to get the input like option from the user using cin but if the user is not responding for some time I want to use the default value which does not need users interaction can any one help to do this in unix c++? int main() { char sex = 'M' ; cout << "Are you... (5 Replies)
Discussion started by: uxbala
5 Replies

9. UNIX for Advanced & Expert Users

deferred: connection timed out with NT

We recently installed a new release of SCO UNIX (5.0.6) and when I try to relay e-mail from the UNIX box to my NT server (the mail server) I get the following message from sendmail. Deferred: Connection timed out with nt I have nt set up as my relay server in sendmail.cf and the mail seems to... (8 Replies)
Discussion started by: jmossman
8 Replies

10. UNIX for Advanced & Expert Users

Connection Timed out

I connect to a Sun Box through telnet but it timed out in couple of minutes. Advance thanks for any idea...help... (2 Replies)
Discussion started by: s_aamir
2 Replies
Login or Register to Ask a Question