cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Highlighted
Bill_Ng
Nickel

Job scheduler for CDT

Jump to solution

Is it possible to create a cron job for CDT? 

I created a script file to run.  Here are the contents.

#!/bin/bash -f
source /opt/CPshared/5.0/tmp/.CPprofile.sh

/opt/CPcdt/CentralDeploymentTool -generate /opt/CPcdt/test.csv

I get the following error in my Main_log.elg file when I ran the script through the job scheduler.

DB Operations error has occurred:

Error code 20 - Error querying the management database.
No execute permissions for one of the required files. See the additional details below.

Details:
--------
The file 'ifconfig' doesn't have execute permission.
************************************************

Wed Jan 22 15:34:46 2020 *D*: Running /sbin/pidof CentralDeploymentTool
Wed Jan 22 15:34:46 2020 *D*:
Command Summary:
Command = /sbin/pidof CentralDeploymentTool
Return code = 0
Output = 20239

0 Kudos
1 Solution

Accepted Solutions

Re: Job scheduler for CDT

Jump to solution

Try adding /sbin to your PATH, as that is where ifconfig is located. Adding /usr/sbin may also work.

 

#!/bin/bash -f
source /etc/profile.d/CP.sh
export PATH=$PATH:/sbin

<rest of CDT script here>

View solution in original post

0 Kudos
3 Replies
Admin
Admin

Re: Job scheduler for CDT

Jump to solution

@Tsahi_Etziony any ideas?

0 Kudos

Re: Job scheduler for CDT

Jump to solution

Try adding /sbin to your PATH, as that is where ifconfig is located. Adding /usr/sbin may also work.

 

#!/bin/bash -f
source /etc/profile.d/CP.sh
export PATH=$PATH:/sbin

<rest of CDT script here>

View solution in original post

0 Kudos
Bill_Ng
Nickel

Re: Job scheduler for CDT

Jump to solution

Thanks Steve!  That did the trick.  I can run the CDT tool from the Job Scheduler now.

0 Kudos