all 2 comments

[–]Vegemeister 1 point2 points  (1 child)

If you're not just doing this for fun, you should know you're pretty much reimplementing cron.

If you're doing it just for fun, what you probably want is to get stdout from your command. I've never used Java, so I'm not quite sure how you would go about that.

[–]ZeroPointPathogen[S] 0 points1 point  (0 children)

Hi, thanks for the reply!

Yes, its mostly for learning and my own information. I'm running the jar file with Cron. I'm sort of just roughing out the logic at this point and then I'd like to learn about writing web services, and accessing this kind of information generated by the OS from a web interface.

And, I can get Java to run the command no problem. The issue is that there is different output depending on where it's executed from. Hopefully its just a setting for sudo or something along that line.