mirror of https://github.com/ovh/the-bastion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
618 B
38 lines
618 B
======
|
|
batch
|
|
======
|
|
|
|
Run a batch of osh commands fed through STDIN
|
|
=============================================
|
|
|
|
|
|
.. admonition:: usage
|
|
:class: cmdusage
|
|
|
|
--osh batch
|
|
|
|
.. program:: batch
|
|
|
|
|
|
**Examples:**
|
|
|
|
(replace ``bssh`` by your bastion alias)
|
|
|
|
- run 3 simple commands in a oneliner:
|
|
|
|
::
|
|
|
|
printf "%b\n%b\n%b" info selfListIngressKeys selfListEgressKeys | bssh --osh batch
|
|
|
|
- run a lot of commands written out line by line in a file:
|
|
|
|
::
|
|
|
|
bssh --osh batch < cmdlist.txt
|
|
|
|
- add 3 users to a group:
|
|
|
|
::
|
|
|
|
for i in user1 user2 user3; do echo "groupAddMember --account $i --group grp4"; done | bssh --osh batch
|