mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-26 07:57:58 +00:00
parallel.pod: Example: Running Bash function remotely with --env.
This commit is contained in:
parent
3f372fe259
commit
6b4bf8a764
BIN
src/parallel.pdf
BIN
src/parallel.pdf
Binary file not shown.
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue