Highlighted
prasanthbala1
1 Copper

Nas Cron job issue

From nasadmin@NSG2.bseltd.domain  Thu Feb  6 10:53:01 2014
Return-Path: <nasadmin@NSG2.bseltd.domain>
Received: from NSG2.bseltd.domain (localhost.localdomain [127.0.0.1])
        by NSG2.xxx.xxx(8.13.1/8.13.1) with ESMTP id s165N1P4012381
        for <nasadmin@NSG2.xxx.xxx>; Thu, 6 Feb 2014 10:53:01 +0530
Received: (from nasadmin@localhost)
        by NSG2.bseltd.domain (8.13.1/8.13.1/Submit) id s165N1gE012380;
        Thu, 6 Feb 2014 10:53:01 +0530
Date: Thu, 6 Feb 2014 10:53:01 +0530
Message-Id: <201402060523.s165N1gE012380@NSG2.bseltd.domain>
From: root@NSG2.xxx.xxx (Cron Daemon)
To: nasadmin@NSG2.bseltd.domain
Subject: Cron <nasadmin@NSG2> /temp/cron_start.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/nasadmin>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=nasadmin>
X-Cron-Env: <USER=nasadmin>

/temp/cron_start.sh: line 1: nas_replicate: command not found

is the error log

Feb  6 10:53:01 NSG2 crond[12377]: (nasadmin) CMD (/temp/cron_start.sh)

cron log

[root@NSG2 nasadmin]# cat /temp/cron_start.sh

nas_replicate -start repl_DATAWAREHOUSE&&nas_replicate -start repl_BOSSI

[nasadmin@NSG2 ~]$ crontab -l
0  18 * * * nas_replicate -start repl_BOLTops
7  09 * * *  nas_replicate -stop repl_BOLTops -mode both
53 10 * * * /temp/cron_start.sh


crontab -l out put

Can ANy Body Help me to resolve this

Advance Thanks

Tags (1)
0 Kudos
4 Replies
ionthegeek
4 Beryllium

Re: Nas Cron job issue

This question doesn't seem to be related to Avamar. If this is a Celerra / VNX issue, you may wish to move this question to the VNX Support Forum so it gets the proper attention.

0 Kudos
dynamox
6 Thallium

Re: Nas Cron job issue

add these two lines to beginning of cron_start.sh

export NAS_DB=/nas

export PATH=$PATH:/nas/bin

0 Kudos
prasanthbala1
1 Copper

Re: Nas Cron job issue

Sorry i put in hurry

0 Kudos
prasanthbala1
1 Copper

Re: Nas Cron job issue

thanks Dynamox,

0 Kudos