Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17828

Noob admin's dilemma: running a java file from the cron enviroment.

$
0
0

Hi, /r/linuxadmin! So, I'm a recently hired sysadmin whose experience with sysadmin-like things has been.. extremely limited. I was hired mostly because I know Linux and Google enough to be the project manager's monkey.

I've run into a problem that I've been trying to solve for a good week now-- I'm trying to monitor and restart Apache Solr with a python script executed from the cron. My only problem is that the cron's own enviroment makes it impossible to run the Java file (missing libraries and such), and no one knows enough about Solr to manually fix them.

So, is there a way to force a command to be run in the user enviroment, so it has all of the normal variables?

submitted by systemskunk
[link] [7 comments]

Viewing all articles
Browse latest Browse all 17828

Trending Articles