This plus the rest of the script work as expected
import splunk.Intersplunk
I need to use the pgdb module so:
import splunk.Intersplunk
import pgdb
Returns errorcode 1
I tried puttying pgdb in the same folder
[root@splunk2 bin]# ls -lah pgdb.py
-rwxr--r-- 1 splunk splunk 11K Aug 15 12:10 pgdb.py
[root@splunk2 bin]# ls -lah customcommand.py
-rwxr--r-- 1 splunk splunk 11K Aug 15 12:10 customcommand.py
I also tried:
`import sys
import splunk.Intersplunk
sys.path.append("/usr/lib64/python2.4/site-packages/")
import pgdb'
Any ideas on what I need to put in my script to use the pgdb module?
Looks like I need to make a wrapper script.
See
Looks like I need to make a wrapper script.
See