Hi
I tried to put a cron job which pipes the logfile appended to date +%d
but it didnt work .
anyone know how to make this happen
thanks in advance
-prasad (7 Replies)
Hello Experts,
I am facing problem in date command with TZ
test.sh
Output : 26-May-2010 27-May-2010
I scheduled this script everyday at 1 a.m
00 01 * * * sh test.sh
when i was called this script test.sh from crontab , it was giving me other output (1 Reply)
Hi Expert,
I am using TZ for extracting yesterday date and day before yesterday date
example :
date_yes=`TZ="GMT+28" date +'%d-%b-%Y'`
date_dbyes=`TZ="GMT+48" date +'%d-%b-%Y'`
echo $date_yes $date_dbyes
26-May-2010 27-May-2010
I have written a small script for the same named... (1 Reply)
Hi,
0 9 1,2,3,4,5,6,7 3,4 6
I want a cronjob to run on every 1st Sat of Mar & Apr. But the above schedule is running is running on the 1st 7 days. How do i rectify it?
Thanks in advance. (2 Replies)
Hi, i wanted to schedule a backup script to run on 7.30pm every 1st Sat of month MAR, APR, SEP, OCT.
Am i understanding it correctly? Because it doesn't seem to run according to the schedule i needed.
= (7.30pm) & (1st to 7th day of the month) & (MAR, APR, SEP, OCT) & (Sat)
30 19 1-7... (1 Reply)
SOLARIS 9 Zone :
date command in crontab shows delayed(One Hour) output
Hi folks,
the date command shows the correct date and time, How ever, if the date command executed through crontab in any form of scrip the output shows as one hour delayed, similar to date -u..
Can some one help in... (12 Replies)
Hi,
I'm new to Linux and I'm trying to do some script.
In particular, a part of that script is the following one:
#!/usr/local/bin/bash
path_s="/home/piros2/"
input_list=$path_s"input_list.txt"
date +%Y-%m-%d --date=" 10 days ago" >> $input_list
The script (script.sh) is executed from... (2 Replies)
Hi ,
I have to schedule one job in crontab, but with two parameters.
1. Sysdate in YYYYMMDD format
2. Sysdate - 7 in YYYYMMDD format
Please suggest how to do that.
Thanks in advance. (1 Reply)
Hi,
on AIX
The following
echo "rr" > myfile_$(date +"%m_%d_%Y").log
gives:
myfile_10_23_2019.log
But in crontab:
00 03 * * 1-6 /u01/script.sh >/tmp/myfile_$(date +"%m_%d_%Y").log 2>&1
gives:
myfile_Wed Oct 23 03:00:00 CEST 2019
How can one have:
myfile_10_23_2019.log (6 Replies)
Discussion started by: big123456
6 Replies
LEARN ABOUT DEBIAN
ldap2repository
LDAP2REPOSITORY(1) User Contributed Perl Documentation LDAP2REPOSITORY(1)NAME
ldap2repository - creating debian repositories cronjob for the GOsa FAI plugin.
SYNOPSIS
ldap2repository [-hvnpej] [-c config] [-d outdir] [-r srvroot] [-i interface] [-a arch] [-P proxy]
DESCRIPTION
ldap2repository is a script to create the cronjob for the local. debian repositories needed by GOsa FAI plugin.
-c LDAP config file (default: /etc/ldap/ldap.conf)
-d output dir (default: /etc/gosa/fai)
-h display this help and exit
-n skip cleanup for mirrors
-p show progress in cronjob
-v be verbose
-i network interface (default: eth0)
-j create a new /etc/cron.d/goto-fai-backend
-r server root (default: /srv/www)
-e ignore small errors
-a processor architecture (default: i386)
-P proxy (default: none)
BUGS
Please report any bugs, or post any suggestions, to the GOsa mailing list <gosa-devel@oss.gonicus.de> or to
<https://oss.gonicus.de/labs/gosa>
LICENCE AND COPYRIGHT
This code is part of GOsa (<http://www.gosa-project.org>)
Copyright (C) 2005-2006 Jan-Marek Glogowski <glogow@fbihome.de>
2007-2010 The GOsa project <gosa-devel@oss.gonicus.de>
This program 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.
perl v5.10.0 2010-05-19 LDAP2REPOSITORY(1)