Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bill_Ng
Collaborator
Jump to solution

Job scheduler for CDT

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
Steve_Payne
Participant

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

(1)
3 Replies
PhoneBoy
Admin
Admin

@Tsahi_Etziony any ideas?

0 Kudos
Steve_Payne
Participant

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>

(1)
Bill_Ng
Collaborator

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

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events