diff --git a/docs/kubectl_exec.md b/docs/kubectl_exec.md index ad236cfe75d..fc388c50d75 100644 --- a/docs/kubectl_exec.md +++ b/docs/kubectl_exec.md @@ -20,7 +20,8 @@ $ kubectl exec 123456-7890 date // get output from running 'date' in ruby-container from pod 123456-7890 $ kubectl exec 123456-7890 -c ruby-container date -//switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780 and sends stdout/stderr from 'bash' back to the client +// switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780 +// and sends stdout/stderr from 'bash' back to the client $ kubectl exec 123456-7890 -c ruby-container -i -t -- bash -il ``` @@ -66,6 +67,6 @@ $ kubectl exec 123456-7890 -c ruby-container -i -t -- bash -il ### SEE ALSO * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager -###### Auto generated by spf13/cobra at 2015-05-27 22:47:02.898315735 +0000 UTC +###### Auto generated by spf13/cobra at 2015-06-24 20:27:28.756021646 +0000 UTC [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_exec.md?pixel)]() diff --git a/docs/man/man1/kubectl-exec.1 b/docs/man/man1/kubectl-exec.1 index c06547c8181..d6cf8dafbfd 100644 --- a/docs/man/man1/kubectl-exec.1 +++ b/docs/man/man1/kubectl-exec.1 @@ -147,7 +147,8 @@ $ kubectl exec 123456\-7890 date // get output from running 'date' in ruby\-container from pod 123456\-7890 $ kubectl exec 123456\-7890 \-c ruby\-container date -//switch to raw terminal mode, sends stdin to 'bash' in ruby\-container from pod 123456\-780 and sends stdout/stderr from 'bash' back to the client +// switch to raw terminal mode, sends stdin to 'bash' in ruby\-container from pod 123456\-780 +// and sends stdout/stderr from 'bash' back to the client $ kubectl exec 123456\-7890 \-c ruby\-container \-i \-t \-\- bash \-il .fi diff --git a/pkg/kubectl/cmd/exec.go b/pkg/kubectl/cmd/exec.go index 787b6ed0fff..9709661828b 100644 --- a/pkg/kubectl/cmd/exec.go +++ b/pkg/kubectl/cmd/exec.go @@ -38,7 +38,8 @@ $ kubectl exec 123456-7890 date // get output from running 'date' in ruby-container from pod 123456-7890 $ kubectl exec 123456-7890 -c ruby-container date -//switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780 and sends stdout/stderr from 'bash' back to the client +// switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780 +// and sends stdout/stderr from 'bash' back to the client $ kubectl exec 123456-7890 -c ruby-container -i -t -- bash -il` )