Is it possible to run a command line type instruction from within Java, even if the command line isn't a program like word.exe ( I am trying to run a mysqldump command to copy a database from one linux box to another ). ...Is it possible to call a shell script using runtime exec? or is there a better way TIA
Peter it depends what you need to do ! For a pure dump, just do as said : exec(new String(){"/bin/bash", "/home/me/myscript.sh"}) this will be the fastest. Otherwise you may have a JDBC connection from DB to DB, also !
Thomas Smets
Just another developper
Could you hold this kitten for a sec? I need to adjust this tiny ad: