parallel.pod: Example: Running Bash function remotely with --env.

This commit is contained in:
Ole Tange 2013-12-02 21:28:48 +01:00
parent 3f372fe259
commit 6b4bf8a764
3 changed files with 13 additions and 0 deletions

Binary file not shown.

View file

@ -1853,6 +1853,11 @@ function.
export -f doubleit export -f doubleit
parallel doubleit ::: 1 2 3 ::: a b parallel doubleit ::: 1 2 3 ::: a b
To do this on remote servers you need to transfer the function using
B<--env>:
parallel --env doit -S server doit ::: 1 2 3
parallel --env doubleit -S server doubleit ::: 1 2 3 ::: a b
=head1 EXAMPLE: Removing file extension when processing files =head1 EXAMPLE: Removing file extension when processing files

View file

@ -1976,6 +1976,14 @@ function.
parallel doubleit ::: 1 2 3 ::: a b parallel doubleit ::: 1 2 3 ::: a b
@end verbatim @end verbatim
To do this on remote servers you need to transfer the function using
@strong{--env}:
@verbatim
parallel --env doit -S server doit ::: 1 2 3
parallel --env doubleit -S server doubleit ::: 1 2 3 ::: a b
@end verbatim
@chapter EXAMPLE: Removing file extension when processing files @chapter EXAMPLE: Removing file extension when processing files
@anchor{EXAMPLE: Removing file extension when processing files} @anchor{EXAMPLE: Removing file extension when processing files}