son_of_grid_engine 0.2.0

Interface with son of grid engine (formerly sun grid engine) to run rust programs on clusters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate son_of_grid_engine as sge;

use std::fs::File;
use std::io::Write;

fn main() {
    let info = sge::discover();

    println!("{:#?}", info);

    let mut p = info.scratch_path.clone();
    p.push("my_temp_file.txt");
    let mut f = File::create(p).expect("unable to open local file");

    f.write_all(b"my custom content").unwrap();
}