04-06-2013
cron, when running scripts/commands, has a minimal environment. You need to assign important variables like PATH etc. Search these fora for frequent errors with cron jobs.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have the following cron:
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /v/sysadmin/sysnet/file.pl
The .pl has been tried at 755 and 777
The script works if manually run by the web browser or unix command prompt, but I can't get the Cron to do it automatically
i went... (3 Replies)
Discussion started by: shahrahulb
3 Replies
2. Solaris
Hi ,
I have a shell script to perform some actions on sun solaris box . This script normally requires to be run as a different user. so, whenever i have to run this script, i need to sudo in as that user , enter the password and execute it. Now,I have to setup a cronjob to execute the script... (11 Replies)
Discussion started by: csg_user
11 Replies
3. UNIX for Dummies Questions & Answers
Hi all
Recently i had finished a perl script. When i run manually, the script work fine.
But when i wanted to put the script in cron, it didn't get the same output as it run manually. I felt that it only execute the script until certain line then it stop as i see most of the related files didn't... (6 Replies)
Discussion started by: AirWalker83
6 Replies
4. Shell Programming and Scripting
Hi
Im very new at working with unix and this problem I simply can not understand. I know there are a lot of threads about problems with shell scripts behaving differently when run from a terminal and from a cronjob. I have tried everything(almost) but I still havent cracked this problem.
Im... (15 Replies)
Discussion started by: Nightowl
15 Replies
5. Shell Programming and Scripting
Hi!
I have a svn backup script that works perfectly if I execute it from the command line but if I set it as a cronjob to run at night, only part of the code works.
So, basically the scripts starts by deleting the folder yesterday and then moves the folder today to the folder yesterday. When... (4 Replies)
Discussion started by: ruben.rodrigues
4 Replies
6. AIX
In my cronjob, I would like to schedule my script.sh to run every minutes. I crontab -e and have in line below but it didn't seems to run at all.
* * * * * script.sh
When I run it manually, I can run it. Is that anything wrong with the above line?
If I change it to something like below,... (4 Replies)
Discussion started by: ngaisteve1
4 Replies
7. Shell Programming and Scripting
Hi,
I have these changes needed to modify a shell script that will run on a specific date of a month, below pseudocode, appreciate any answers..thanks..
if date of the month is 26th then
..event 1
fi
if date of the month is 26th and month are MAR,JUN,SEP,DEC then
..event2
... (7 Replies)
Discussion started by: sonja
7 Replies
8. Shell Programming and Scripting
Hello All,
I have written a script which which is working fine to a certain logic of it. But i want a part of the script to run two commands at 00:10 hrs every day. These two command are
1. rm -rf /path/to/folder
2. mail the content of a file.
How do i achieve this. Thanks.
... (4 Replies)
Discussion started by: Siddheshk
4 Replies
9. Shell Programming and Scripting
Hi All,
How to schedule a shell script(script name- byweeklyreport.sh) it should run by weekly in corn job or is there any script have to write to check week and then run the above script.
example-1st run March 06 2013
2nd run March 20 2013
3rd run April 3 2013... (13 Replies)
Discussion started by: krupasindhu18
13 Replies
10. Solaris
Hi all,
I have this script which sends mail whenever the system is down. It works fine. Normally the system is down from 21 00 to 21 30 from Monday to Saturday and from 21 00 on Sunday to Monday 06 00 for maintenance. So I want the below script to run only when the system is up, i.e outside the... (2 Replies)
Discussion started by: frum
2 Replies
LEARN ABOUT DEBIAN
send-reminders
SEND-REMINDERS(1) User Contributed Perl Documentation SEND-REMINDERS(1)
NAME
Send-reminders - send email reminders for special occasions
SYNOPSIS
Send emails reminders set by users for special occasions.
DESCRIPTION
Email-reminder allows users to define events that they want to be reminded of by email. Possible events include birthdays, anniversaries
and yearly events. Reminders can be sent on the day of the event and a few days beforehand.
This script is meant to be invoked everyday by a cron job. It mails the actual reminders out.
When run by the root user, it processes all of the spooled reminders. When run by a specific user, it only processes reminders set by that
user.
OPTIONS
--help
Displays basic usage message.
--simulate
Does not actually send any emails out.
--verbose
Prints out information about what the program is doing, including the full emails being sent out.
--version
Displays the version number.
FILES
~/.email-reminders, /etc/email-reminder.conf
AUTHOR
Francois Marier <francois@email-reminder.org.nz>
SEE ALSO
email-reminder-editor, collect-reminders
COPYRIGHT
Copyright (C) 2004-2010 by Francois Marier
Email-Reminder is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
Email-Reminder is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Email-Reminder; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
perl v5.14.2 2012-05-28 SEND-REMINDERS(1)