My default root user umask is set to 077 and I have the following crontab job to redirect al the backup output to the logfile of /backup/backup.xxxxx
Since root default umask is 077, the backup logfile of /backup/backup.xxxx is only readable to root itself. But I want to allow non-root or normal account to be able to read the backup logfile. Is there a way to achieve this in the crontab syntax itself?
Last edited by Franklin52; 01-08-2013 at 03:45 AM..
Reason: Please use code tags for data and code samples
Hi,
I have cornjob was scheduled at 1:00 AM everyday. It has been running fine since last Saturday. But it didn't run since Saturday. Because of daytime saving time change it didn't ran?
Please send me your thoughts.
Thanks in adavance.
Moe (3 Replies)
Hi,
i need to schedule a script to run at 6.10AM everyday.I tried to do this way.
#!bin/ksh
10 06 * * 0-6
sh /tmp/ss/script/daily_file_check.sh
And at the command prompt I did
>crontab -e cron.txt
I'm not sure whether this is the right way.
Can anyone please tell me how to... (4 Replies)
Hey,
MAILTO=cron@domain.ca
*/20 * * * * /usr/bin/wget http://list.domain.ca/admin/consume.php >/dev/nullthats what the crontab is setup todo, so basically every 20minutes it runs consume.php
In my root directory, i'm getting files like this:
consume.php
consume.php1
consume.php2
i woke... (3 Replies)
Hi all,
down here part of the scheduled job in crontab (AIX Version 5)
i have problem running jspPRE-ALL.
i verrify permissions and privileges (the others job are working good)
if i run the job in command line it work correctly
#
# Aggiornamento doni e continuity
00 02 * * 2-6... (5 Replies)
Dear Friends,
I am working on IBM AIX. I have written one script and kept in the crontab as to run daily at 11:38 AM. and the output of the script to be appended to the file generated with the month name. but my file deleting daily and the new file is creating with the output of the shell... (2 Replies)
Hello,
I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
#51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
#40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
I have a ksh script that does the following
1. Script executes and creates an output file from a sql query
2. That output file is an input file to the script
3. generates an html file to email to DBA receipients
The following syntax works at the command line
... (1 Reply)
Hello,
This is my first posting in Linux world.
I have SLES 11.
I've created a file 'packdisk-scandisk.txt' file under /var/opt/Teradata/bteqdba.
The content of the file is,
cat /var/opt/Teradata/bteqdba/packdisk-scandisk.txt
output over /var/opt/Teradata/bteqdba/TAREAS_DBA.log... (2 Replies)
hell all:
i am trying to test a crontab job for snmpwalk but it is not working:
here is crontab:
*/1 * * * * root /root/snmpwalk.sh
for the script, it is very simple:
#!/usr/local/bin/bash
/usr/local/bin/snmpwalk -v 2c -c public 100.10.10.10 (6 Replies)
Discussion started by: ipfreak
6 Replies
LEARN ABOUT HPUX
dgcfgbackup
dgcfgbackup(1M)dgcfgbackup(1M)NAME
dgcfgbackup - create or update VxVM volume group configuration backup file
SYNOPSIS
/usr/sbin/dgcfgbackup [-f dg_conf_path ] dg_name
DESCRIPTION
The dgcfgbackup command saves the VxVM configuration for a disk group in a default or alternate configuration backup file (see the descrip-
tion of the-f option).
By default, dgcfgbackup is run automatically each time that a VxVM command changes the VxVM configuration. In this case, it always uses
the default configuration backup file. An existing default configuration backup file is renamed with an extension of .old.
Options and Arguments
dg_name Specifies the name of a disk group.
-f dg_conf_path
Saves the configuration using an alternate file name specified by dg_conf_path. If this option is omitted, the default file name
is /etc/vxvmconf/dg_name.conf.
EXIT CODES
dgcfgbackup exits with a zero status on successful completion. An non-zero exit status indicates that errors occurred when information
from the disk group was being accessed.
EXAMPLES
Back up VxVM configuration information for disk group testdg in the default backup file /etc/vxvmconf/testdg.conf:
dgcfgbackup testdg
Back up VxVM configuration information for disk group datadg in the alternate configuration backup file /tmp/datadg.backup:
dgcfgbackup -f /tmp/datadg.backup datadg
NOTES
It is recommended that any alternate configuration backup file be created in the root file system (as is the case with the default path
name). This facilitates disk group recovery during maintenance mode, such as after a system crash.
AUTHOR
dgcfgbackup was developed by the Hewlett-Packard Company.
SEE ALSO dgcfgrestore(1M)VxVM 5.0.31.1 24 Mar 2008 dgcfgbackup(1M)