Hi all I am brand new to all of this so please bear with me. I have created this bash file as follows:
rm /home/ubuntu/test.jar
wget http://mywebsite.com/test.jar
java -jar test.jar
Now I have placed that file in many various places, run some update thing, and also even made a cron job with the @reboot function.
No matter what, the java program is never actually started.
Now, this is an Amazon Web Services headless Ubuntu server with no GUI, only SSH access so I've gotta do it via command line, and have it run as a daemon of some sort. I appreciate any help!
ubuntu")? Please also provide exact details about the cron job you have created--that is, please edit your question to include the output ofcrontab -lorcat /etc/crontab(whichever is relevant). Please give as many details as possible about exactly what you mean when you say you ran "some update thing." – Eliah Kagan Jun 1 '12 at 18:26wgetcommand is not executing in the same directory thattest.jaris being downloaded to. (It's strange that yourmwith the full path, butwgetto the current directory to replace the file.) – Eliah Kagan Jun 1 '12 at 18:28