02-21-2013
Schedule the Script
I have wriiten one script to get some results from log files. Daily I have to run the script using the below command to get the output.
What I need is, Can I schedule the Script to execute once every day at a particular Time and get the output by mail automatically? I heard about 'cron job' . . But I am not aware of it. I just started learning scripting.
It will be helpfull, If anyone give the Sample script to do this.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I schedule a script on Solaris? (3 Replies)
Discussion started by: krikets
3 Replies
2. Shell Programming and Scripting
Hi,
I'd like to somehow schedule a task on my webserver, such that my account's mail is checked every 10-15 minutes and:
a) any new e-mails received from a particular address are POST-ed to a PHP webpage on my server.
b) any new e-mails received from a different particular address are... (2 Replies)
Discussion started by: stujones
2 Replies
3. Shell Programming and Scripting
Hi All,
Here's one that may belong in the Scripting Thread but I thought I'd start off here. Here's the scenario:-
I have to transfer the functionality and data from an old E450 to a nice new Sun V440.
The E450 contains a bunch of scripts which may or may not still be in use daily,... (2 Replies)
Discussion started by: geralex2
2 Replies
4. Shell Programming and Scripting
I have a script which shoud run after every 30 minutes.Though I know abt crontab, unfortunately I dont have access/authorization to use crontab in my terminal.
Could any one pls let me know how to schedule the script without crontab ?
Regards
Prashant:) (3 Replies)
Discussion started by: prashant43
3 Replies
5. Shell Programming and Scripting
Hi,
My script is in $home/bin/sample.sh.
I want to run the script for 3times a day,
first execution will be at 08:00 am.
second execution will be at 16:00 pm
third will be at 23:59 pm.
what will be the entry with this requirement?? (1 Reply)
Discussion started by: shrima.pratima
1 Replies
6. UNIX for Dummies Questions & Answers
On Ubuntu 10.04 LTS, I would like to know the best way to schedule myscript.sh to run at a specified time, please provide examples and specify things like does cron have to be running, how do I check if cron is running and all that. I have tried unsuccessfully in the past to run the AT command,... (1 Reply)
Discussion started by: glev2005
1 Replies
7. Shell Programming and Scripting
Dear all,
I have to create a shell script which will run the job during weekday/weekend in following manner: -
There are 3 jobs
JB_1
JB_2
JB_3
These jobs changes its flag to "COMPLETED" in below 2 ways
1. These 3 jobs which runs after the completion of previous one i.e JB_1 runs and... (5 Replies)
Discussion started by: prajaktaraut
5 Replies
8. Shell Programming and Scripting
shell=ksh,
How could I schedule tasks in shell script INSTEAD OF using the crontab -e functionality?
For example, I want a script to print "Hello World" every 10 seconds (i.e., INTERVAL = 10s) until external termination signal is triggered.
Thanks, (2 Replies)
Discussion started by: isaacniu
2 Replies
9. Windows & DOS: Issues & Discussions
Dear Experts,
Once again i need your vital help to fix my issue, please do the needfull.
Issue:- I have schedule one script on windows server to run's every 10 min.(Script do check the alert log file,if database found down it send the email) While i'm doing the database down manually its... (12 Replies)
Discussion started by: Mohammed Fareed
12 Replies
10. Shell Programming and Scripting
Hi All,
I want to schedule a shell script on AIX.
But Crontab is not working in my AIX Server.Is there any alternative?
Please Suggest.. (2 Replies)
Discussion started by: bharat1211
2 Replies
LEARN ABOUT DEBIAN
script-email
SCRIPT-EMAIL(8) System Administration Commands SCRIPT-EMAIL(8)
NAME
script-email - Amanda script to send email notifications
DESCRIPTION
script-email is an Amanda script implementing the Script API. It should not be run by users directly. It sends a notification email to the
addresses specified in the MAILTO property.
PROPERTIES
This section lists the properties that control script-email's functionality. See amanda-scripts(7) for information on the Script API,
script configuration.
MAILTO
List of email addresses that will receive an email on command execution. It is a multi-valued property:
property "MAILTO" "amanda@domain.com" "sysadmin@domain.com" "amandauser@domain.com"
EXAMPLE
In this example, script-email is scheduled to be run before the DLE, on the server. The unqualified email address amanda will be passed to
the email system unchanged. The script is then attached to a dumptype, which can then be specified for any DLEs which require
notification.
define script-tool pre-email {
comment "email me before this DLE is backed up"
plugin "script-email"
execute-on pre-dle-backup
execute-where server
property "mailto" "amanda"
}
define dumptype user-tar-email {
user-tar
script "pre-email"
}
SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 SCRIPT-EMAIL(8)