- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Job scheduler for CDT
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Tsahi_Etziony any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve! That did the trick. I can run the CDT tool from the Job Scheduler now.
