How to keep running a program in Java -


i have written java code keep getting value in other website every 10sec.
, keep writing result append txt file.
how can keep running code.
should run in cloud server?
if so, how can it.
know in eclipse, click "run application".
how can run in other ways(linux, or without eclipse)?

here can do, using loop, shell script , cron job achieve need:

  1. make sure program has logic infinite loop run always.

  2. then write shell script invoke java program necessary arguments.

  3. make sure classpath argument points jars need.

  4. make sure shell script has necessary linux permissions.

  5. schedule script invoked setting cron job. can set cron condition per need.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -