Commit 46354fab authored by Olav Kvittem's avatar Olav Kvittem
Browse files

support simple list in mp-cmd

parent 634aa5fc
......@@ -16,6 +16,11 @@ while(<LIST>){
next if /^\s*#|^\s*$/; # comment line
($name, $uid, $dns, $ip)=split;
if ( ! $ip ){ # simple list of names/addresses
next if $target&& $target ne $name;
printf "env NAVN=%s LANG=C LC_ALL=C ssh %s@%s %s # %s\n", $name, ${uid},${ip}, $cmd;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment