Linux.com

Re:Possibly use a newer language?

Posted by: Anonymous Coward on June 29, 2005 08:24 AM
import java.io.*;

class MyExecClass {

Runtime runEnviron = Runtime.getRuntime();
try {

        Process newProcess = runEnviron.exec("/usr/bin/normalUnixCommand");
} catch (IOException e) {

        System.out.println("Problem with command.");
}

}

compared with

#!/bin/bash<nobr> <wbr></nobr>/usr/bin/normalUnixCommand

I Have Been Trolled. I Have Lost. I am having a nice day.

#

Return to The Tenth Commandment of system administration