vim - Error reading cscope connection after database update from cron -
vim - Error reading cscope connection after database update from cron -
i have script setup runs every night on projects , updates cscope databases. script deletes existing cscope files (.files, .out etc) , generates new ones.
when script run via cron job, finish error e262: error reading cscope connection 0
within vim when seek lookup symbol. when run script manually, there's no problem.
the gist of script -
delete existingcscope.*
, tags
files go through entire project , generate cscope.files
build cscope database using cscope -b -q
build tags database using ctags --extra=+f -l cscope.files
any ideas?
found problem.
i needed source bash_profile in script environment variables available script.
adding source ~/.bash_profile
top of script fixed issue.
vim cron tags cscope
Comments
Post a Comment