ipmitool mc reset coldIf IPMI kernel module happens not to be loaded, then load it with this command:
modprobe ipmi_devintf
ipmitool mc reset coldIf IPMI kernel module happens not to be loaded, then load it with this command:
modprobe ipmi_devintf
diff -qr path/1/ path/2/With a separate diff for each differing file:
diff -r path/1/ path/2/
my $cupsc='/sbin/service cups reload';with
my $cupsc='/usr/sbin/service cups reload';
$command="LC_ALL=C /usr/sbin/lpadmin -p $prt->{printerName} -L \"$prt->{location}\" -D \"$prt->{description}\" -v $uri $duplex $media -o printer-is-shared=false -E";with
$command="LC_ALL=C /usr/sbin/lpadmin -p $prt->{printerName} -L \"$prt->{location}\" -P $prt->{ppdfile} -D \"$prt->{description}\" -v $uri $duplex $media -o printer-is-shared=false -E";Apparently this got replaced in the meanwhile.
perl lpadmincern.pl --add [your-printer-name-here]
echo $(($((`cat /proc/cpuinfo | grep 'processor' | sort -n | wc -l`))/$((`cat /proc/cpuinfo | grep "physical id" | sort -n | uniq | wc -l`))))
import os.path parent = "a/b/c" filename = "efg" joined = os.path.join(parent, filename)But what is Java equivalent? It turns out that the best way is to use java.io.File. One can do:
File parent = new File("a/b/c");
File file = new File("efg");
String joined = new File(parent, file).getPath();
The last line is to go back to String world, but possibly you don't have to.