Skip to content

Instantly share code, notes, and snippets.

View olehermanse's full-sized avatar

Ole Herman Schumacher Elgesem olehermanse

View GitHub Profile

Bootstrapping to custom ports and/or host names

While implementing the bootstrap to custom ports and host names functionality I wrote this small "guide" on how to use the features and see if it worked.

Important: I have the repositories ~/cfengine/masterfiles and ~/cfengine/core on my machine. If you want to install from source you will need to adjust these paths accordingly to your folder locations.

PREREQUISITES

Add hostname (Optional)

If you want to test with a custom hostname, you can add it to /etc/hosts:

import java.io.*;
public class JavaRunCommand {
public static void main(String args[]) {
String s = null;
String navn = "Jeanette";
String nummer = "99998888";
try {
Process p = Runtime.getRuntime().exec("cowsay Hei mitt navn er " + navn + " og mitt nr er "+ nummer+".");