08-10-2010
The way you run your cronjob (without
> /dev/null 2>&1) suggests that the actual output from your cronjob should be in your user's mailbox.
Check your mail on the server.
(as an aside, I don't think
*/13 notation transcends boundaries, so it will run at 0, 13, 26, 39, 42, 55, 0, 13, ..., etc, minutes past the hour, but I may be wrong
)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
user x has a cron job that looks in a dir and moves teh files from 1 name to another except its not working correctly.
. /user/.profile # sorce the users profile
for file in `ls`; do
mv $file $file.`date +%Y%m%d%H%M%S``microsec`
done
microsec is a binary with 555 perm. on it in... (5 Replies)
Discussion started by: Optimus_P
5 Replies
2. Solaris
When I list whats in cron -l its fine but when I try to -e edit it...it returns a number 309 can't you not edit cron this way with solaris 10? I can do it fine in sol 8 and 9.
export EDITOR="vi" is set in my profile
I am using BASH
$ sudo crontab -l
Password:
#ident "@(#)root ... (5 Replies)
Discussion started by: kingdbag
5 Replies
3. Red Hat
Hello,
Having and issue with a job scheduled in cron. The script:
#!/bin/bash
2
3 # Example shell script which can be added to roots cron job to check the
4 # Embedded Satellite disk space usage. If any table is over 90% usage, send
5 # a notice to the default email address... (2 Replies)
Discussion started by: mgb
2 Replies
4. Shell Programming and Scripting
Hi Guys.,,
This thing is driving me crazy..
I have this script which runs perfectly fine. If it is not able to connect to database it will drop a mail which it does when i ran it manually.
But when i am running it from crontab, the script is not sending mail to me but to my id(login id)... (0 Replies)
Discussion started by: mac4rfree
0 Replies
5. Shell Programming and Scripting
Hi Gurus,
I need to run a script every saturday at 7:05 PM. Below command is working in x86_64.
05 19 * * 6 /apps/informatica/scripts/inf_rest.ksh
However when I tried in HP-UX it is giving the below error.
crontab: error on previous line; unexpected character found in line.
Please... (4 Replies)
Discussion started by: svajhala
4 Replies
6. UNIX for Advanced & Expert Users
I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server. The whole process seems to execute seamlessly every 5 minutes, but then it seems to log it in /var/log/syslog. I investigated on the syslog and found... (0 Replies)
Discussion started by: manjunath.nm89
0 Replies
7. UNIX for Dummies Questions & Answers
I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server. The whole process seems to execute seamlessly every 5 minutes, but then it seems to log it in /var/log/syslog. I investigated on the syslog and found... (0 Replies)
Discussion started by: manjunath.nm89
0 Replies
8. Ubuntu
I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server. The whole process seems to execute seamlessly every 5 minutes, but then it seems to log it in /var/log/syslog. I investigated on the syslog and found... (3 Replies)
Discussion started by: manjunath.nm89
3 Replies
9. Solaris
Hello, I am running Solaris 8. I have set a cron job that runs every couple hours. If I run the script manually, it runs just fine (logged in as root). The cron however will not run. It is producing an rc=1 error. Any thoughts would be appreciated. Thanks (4 Replies)
Discussion started by: jkmtm
4 Replies
10. Shell Programming and Scripting
i have written a script to sftp yesterday's logs from another server as below:
cd /export/home/abc/xyz/tt
d=`gdate -d'yesterday' +%Y%m%d`
sftp abc@XXX.XX.XX.XX<<EOF
cd /yyy/logs/archive
mget abc.log.$d*
EOF
cd /export/home/abc/xyz/scripts
nohup ./ss.sh PROD &
it is working fine... (2 Replies)
Discussion started by: ssk250
2 Replies
LEARN ABOUT DEBIAN
roundup-mailgw
ROUNDUP-MAILGW(1) General Commands Manual ROUNDUP-MAILGW(1)
NAME
roundup-mailgw - mail gateway for roundup
SYNOPSIS
roundup-mailgw instance_home [method]
OPTIONS
-v Print version and exit.
-C hyperdb class
specify a tracker class - one of msg (the default), issue, file, user - to manipulate with -S options
-S property=value[;property=value] pairs
specify the values to set on the class specified by -C using the same format as the Subject line property manipulations
DESCRIPTION
The roundup mail gateway may be called in one of three ways:
o with an instance home as the only argument,
o with both an instance home and a mail spool file, or
o with both an instance home and a pop server account.
PIPE
In the first case, the mail gateway reads a single message from the standard input and submits the message to the roundup.mailgw module.
UNIX mailbox
In the second case, the gateway reads all messages from the mail spool file and submits each in turn to the roundup.mailgw module. The file
is emptied once all messages have been successfully handled. The file is specified as:
mailbox /path/to/mailbox
In all of the following the username and password can be stored in a ~/.netrc file. In this case only the server name need be specified on
the command-line.
The username and/or password will be prompted for if not supplied on the command-line or in ~/.netrc.
POP
In the third case, the gateway reads all messages from the POP server specified and submits each in turn to the roundup.mailgw module. The
server is specified as:
pop username:password@server
The username and password may be omitted:
pop username@server
pop server
are both valid. The username and/or password will be prompted for if not supplied on the command-line.
APOP
Same as POP, but using Authenticated POP:
apop username:password@server
IMAP
Connect to an IMAP server. This supports the same notation as that of POP mail.
imap username:password@server
It also allows you to specify a specific mailbox other than INBOX using this format:
imap username:password@server mailbox
IMAPS
Connect to an IMAP server over ssl. This supports the same notation as IMAP.
imaps username:password@server [mailbox]
AUTHOR
This manpage was written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of roundup.
The main author of roundup is Richard Jones <richard@users.sourceforge.net>.
24 January 2003 ROUNDUP-MAILGW(1)