parallel: --slf . now reads /etc/parallel/sshloginfile

This commit is contained in:
Ole Tange 2012-01-14 00:57:48 +01:00
parent 379c0cd36b
commit add040c278
2 changed files with 8 additions and 2 deletions

View file

@ -1490,6 +1490,9 @@ sub read_sshloginfile {
if($file eq "..") { if($file eq "..") {
$file = $ENV{'HOME'}."/.parallel/sshloginfile"; $file = $ENV{'HOME'}."/.parallel/sshloginfile";
} }
if($file eq ".") {
$file = "/etc/parallel/sshloginfile";
}
if($file eq "-") { if($file eq "-") {
*IN = *STDIN; *IN = *STDIN;
$close = 0; $close = 0;

View file

@ -1113,9 +1113,9 @@ B<--sshlogin> is often used with B<--transfer>, B<--return>,
B<--cleanup>, and B<--trc>. B<--cleanup>, and B<--trc>.
=item B<--sshloginfile> I<filename> =item B<--sshloginfile> I<filename> (alpha testing)
=item B<--slf> I<filename> =item B<--slf> I<filename> (alpha testing)
File with sshlogins. The file consists of sshlogins on separate File with sshlogins. The file consists of sshlogins on separate
lines. Empty lines and lines starting with '#' are ignored. Example: lines. Empty lines and lines starting with '#' are ignored. Example:
@ -1143,6 +1143,9 @@ Multiple B<--sshloginfile> are allowed.
The sshloginfile '..' is special, it read sshlogins from The sshloginfile '..' is special, it read sshlogins from
~/.parallel/sshloginfile ~/.parallel/sshloginfile
The sshloginfile '.' is special, it read sshlogins from
/etc/parallel/sshloginfile
The sshloginfile '-' is special, too, it read sshlogins from stdin The sshloginfile '-' is special, too, it read sshlogins from stdin
(standard input). (standard input).