java - EC2- Run jar on running EC2 instance -
i have ec2 instance , have .jar took (wget script command) s3. want run .jar file, not on start-up, when decide.
i'm using java "eclipse juno" aws sdk.
running user data script doesn't me here.
can 1 me this?
thanks in advance.
what looking unix cronjobs, take @ cron job manual here , set run whenever want.
also, can install webmin on system, gives great server management including cronjobs , scheduled commands need via web interface
if want run java, use
string[] command={"java","-jar","myfile.jar"}; runtime.getruntime().exec(command);
Comments
Post a Comment