#include #include int main () { try { saga::job::service js ("ssh://localhost"); saga::job::description d; { std::cout << "creating job 1" << std::endl; saga::job::description d1 = d; d1.set_attribute (saga::job::attributes::description_executable, "/usr/bin/true"); saga::job::job j1 = js.create_job (d1); j1.run (); j1.wait (); } { std::cout << "creating job 2" << std::endl; saga::job::description d2 = d; d2.set_attribute (saga::job::attributes::description_executable, "/usr/bin/true"); saga::job::job j2 = js.create_job (d2); j2.run (); j2.wait (); } } catch ( const saga::exception & e ) { std::cout << "exception: " << e.what () << std::endl; return -1; } return 0; }