Sponsored Content
Full Discussion: Crontab Issue
Top Forums UNIX for Dummies Questions & Answers Crontab Issue Post 80359 by rickyt00 on Saturday 6th of August 2005 09:31:32 AM
Old 08-06-2005
I looked at the env. and it seems to me that every thing is in the PATH, This is a new box, and I checked out the old box and everything seems to be the same. Here is the path and the script, It does work fine if you run it manually. It seems like it is choking on the /sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk0a >>&/etc/dump_log because first it never writes to the file and if I do a ps -ef | grep dump after the scheduled time nothing shows up.


PATH=/sbin:/usr/sbin:/usr/bin:/usr/bin/X11:/admin/wp51/wpbin/:/admin/wp51/shbin:/usr/ud/bin:/usr/local:/usr/udms:/usr/udms/etc




#! /bin/csh
# /etc/back_up 7-25-05
# Use restore -ivf /dev/tape/tape0_db0 -s x (x = volume to be restored from)
# for file by file restores.
# Remember to rewind tape between restores when restoring different
# filesystems(volumes).
# Also, check fs using df to make sure tape does not fill up.
# Check /etc/backup_date for start and stop times and
# /etc/dump_log for play by play dump status info
#
echo > /etc/backup_date
echo > /etc/dump_log
#
echo starting full backup at `date` >> /etc/backup_date
#
#
echo starting dump of: / filesystem at `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk0a >>&/etc/dump_log
echo dump of: / finished at `date` >> /etc/backup_date
#
echo starting dump of: /usr filesystem `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk0g >>&/etc/dump_log
echo dump of: /usr finished at `date` >> /etc/backup_date
#
echo starting dump of: /db1 filesystem `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk1b >>&/etc/dump_log
echo dump of: /db1 finished at `date` >> /etc/backup_date
#
echo starting dump of: /db2 filesystem `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk2b >>&/etc/dump_log
echo dump of: /db2 finished at `date` >> /etc/backup_date
#
echo starting dump of: /db3 filesystem `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk3b >>&/etc/dump_log
echo dump of: /db3 finished at `date` >> /etc/backup_date
#
echo starting dump of: /unidata filesystem `date` >> /etc/backup_date
/sbin/dump 0fsu /dev/ntape/tape0 1000000 /dev/disk/dsk4b >>&/etc/dump_log
echo dump of: /unidata finished at `date` >> /etc/backup_date
#
# Notify sytems administrators
mailx -s "dump done: admin4" admin@admin.com < /etc/dumpdates
 

10 More Discussions You Might Find Interesting

1. HP-UX

crontab issue

Dear Folks, i am new to hp-ux, i have a problem scheduling the crontab, The script is working fine at command prompt, but not working at cron, please find a solution for it , here are the logs and my schedule at cron: log after restarting crontab /var/adm/cron/log ! *** cron started *** ... (11 Replies)
Discussion started by: vaddi
11 Replies

2. UNIX for Advanced & Expert Users

crontab issue

I am adding a piece of code which adds entry in crontab ((in brown color)) \crontab -l > $tmpfile echo "Removing the cleanProcess entry if it already existed.." grep -v "cleanProcess.sh" $tmpfile > $newtmpfile lcnt=`grep -c "cleanProcess.sh" $tmpfile` echo... (4 Replies)
Discussion started by: crackthehit007
4 Replies

3. Shell Programming and Scripting

crontab issue

Helo . I have 2.6.13-1.1526_FC4smp here. I am trying to make crontab execute my simple shell script, but noting happens. here is how i am testing this : $ pwd /home/oracle $ ls -l two* ls: two*: No such file or directory $ $ crontab -e crontab: installing new crontab $ $ crontab... (7 Replies)
Discussion started by: tonijel
7 Replies

4. Shell Programming and Scripting

Issue with crontab

I have a ksh script which will connect to a database and executes some sql scripts. If i run the ksh script it is working fine. But if i schedule it to run at a perticular time using cron the sql script is not running. The scriptl initially creates a spool file for sql script and then connects and... (12 Replies)
Discussion started by: Sriranga
12 Replies

5. UNIX for Advanced & Expert Users

Crontab issue

We have configured a script to be run at specific time using crontab. # crontab -l 15 11 * * * VM_Count_V4.shas per the crontab entry script should run every day 11.15 a.m Every time when the script is executed i get a mail but when i run it using crontab it doesn't send any mail. However... (1 Reply)
Discussion started by: pinga123
1 Replies

6. AIX

Crontab issue

Hi all, I'm having a problem with a crontab entry execution for a non root user. AIX version 5.3 user@host ~ $ oslevel -r 5300-10 cron status user@host ~ $ ps -ef | grep cron root 377044 1 0 Oct 27 - 0:22 /usr/sbin/cron cron entry for user user@host ~ $... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

7. UNIX for Dummies Questions & Answers

Crontab Issue..!!!

Hi, I have a cronjob but it is not getting executed.Is there any ways to check whether crontab is working.I have put crontab -l and checked.It got listed.But it is not working. My Crontab is, * * * * * /ldesk/home/abc/source/compare.sh >/dev/null 2>&1 (1 Reply)
Discussion started by: gayisada
1 Replies

8. Shell Programming and Scripting

Crontab issue

hi, i have schduled a job through crontab, but it is not getting executed. bash-3.2$ crontab -l # Monthly Download (mm hh DD MM format) 35 05 01 04 * /home/ftpsrp/srpftp1/download/ofrdb/scripts/load_ofrdb.sh crr.sh here is the permission of the .sh files -rwxr--r-- 1 ftpsrp srp ... (7 Replies)
Discussion started by: lovelysethii
7 Replies

9. UNIX for Advanced & Expert Users

Crontab Issue

My colleague who was a sysadmin , has created a cron job script which collects logs and process them. The script works perfectly as per the defined time set by him. it works when we keep the timing as 55 05 * * * , whereas if we try to prepone the cron task is not getting executed. Where... (10 Replies)
Discussion started by: aravindj80
10 Replies

10. UNIX for Dummies Questions & Answers

Crontab issue

Hello, I have a bash script that finds files older than 31 days and deletes them. I have this file loading into crontab to run everyday. It ran fine the first time i loaded it in, but now when I try to run it manually (bash file.sh) I get errors. Here is the script TIME=" -maxdepth 1... (6 Replies)
Discussion started by: jrymer
6 Replies
rdump(8c)																 rdump(8c)

Name
       rdump - file system dump across the network

Syntax
       /etc/rdump [ -key [ argument ... ] filesystem ]

Description
       The command copies to magnetic tapes, disks, or a dump image file all files changed after a certain date in the filesystem.  The command is
       identical in operation to except the f key must be specified and the file supplied should be of the following form:

       remote-system-name:device-or-file

       The command initiates a remote server, on the remote system to access the remote device or file.

Options
       With the command, you specify a string of one or more of the options described below.  If no options are specified, the key 9u is assumed.

       0-9     This number is the ``dump level.''  All files that were modified since the last date stored in  the  file  for  the  filesystem	at
	       lesser  levels  will be dumped.	If no date is determined by the level, the beginning of time is assumed.  Thus, the level 0 causes
	       the entire filesystem to be dumped, a level 5 is used for a weekly backup and a level 9 for a daily backup.

       B       The next argument is a number that specifies the size, in 1024-byte blocks, of a storage medium, such as a diskette or a  removable
	       disk.  See the first example.

       d       The  density  of  the  tape,  expressed in bits per inch, is taken from the next argument.  This density is used in calculating the
	       amount of tape used per reel.  The default density is 1600 bpi.

       f       Place the dump on the file or device specified by the next argument.  This file is specified as remote-system-name:device-or-file.

       n       Notify, by means similar to a command, all users in the group ``operator'' when needs operator attention.

       o       Provides compatibility with non-ULTRIX or pre-ULTRIX Version 2.0 remote systems.

       S       Displays amount of space used by without performing the dump operation.	This is used for presizing either for  file  preallocation
	       or to ensure the correct number of tapes or disks are on hand.

       s       The  next  argument  specifies  the  size of the dump tape (in feet).  When the specified size is reached, waits for the reel to be
	       changed.  The default tape size is 2300 feet.

       u       If the dump completes successfully, writes the date of the beginning of the dump to file This file records a separate date for each
	       filesystem  and	each  dump level.  The format of consists of one free format record per line: filesystem name, increment level and
	       format dump date.  The superuser can carefully edit to change any of the fields.

       W       The utility tells the operator what file systems need to be dumped.  This information is taken from the files and The option causes
	       to print out, for each file system in the most recent dump date and level, and highlights those file systems that should be dumped.
	       If the option is used, all other options are ignored, and exits immediately.

       w       Unlike lists only those filesystems that need to be dumped.

Examples
       This example reports number of bytes to be output for a level 0 dump of the root file system.  Please note: the file is not created.
       rdump OSf system:test /
       This example dumps the root(/) file system from the local system to a remote system named ``nihil''.  A level 0 dump to tape  is  performed
       and the file is updated.
       rdump 0uf nihil:/dev/rmt0h /

       This  example  dumps the user (/usr) file system from the local system to a remote system named ``dickens'' using the RX50 device named for
       output.	A level 0 dump is performed, but the file is not updated.
       rdump 0f dickens:/dev/rra1a /usr

       This example dumps the root file system to a non-ULTRIX or ULTRIX before Version 2.0 remote system.  A level 0 dump to a tape drive is per-
       formed and the file is updated.
       rdump 0ouf system:/dev/rmt0h /

       This  example  dumps the root file system to a non-ULTRIX or ULTRIX before Version 2.0 remote system.  A level 0 dump to the rx50 device is
       performed and the file is updated.  Note the specification of 400 as the device size in 1,024 byte blocks.
       rdump 0ouBf 400 system:/dev/rra1a /

       If you want to use / and you must have these entries in the file.

Diagnostics
       Same as with a few extra related to the network.

Files
       Required for user interface

See Also
       dump(8), rmt(8c)

																	 rdump(8c)
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy