Skip to content

Fix rsh command flags order#8

Open
dcommisso wants to merge 1 commit intopeterducai:mainfrom
dcommisso:fix_rsh_command
Open

Fix rsh command flags order#8
dcommisso wants to merge 1 commit intopeterducai:mainfrom
dcommisso:fix_rsh_command

Conversation

@dcommisso
Copy link

Hi Peter,
the rsh command as echoed by scripts is not working:

$ oc rsh <etcd pod> -n openshift-etcd -c etcd
Defaulted container "etcdctl" out of: etcdctl, etcd, etcd-metrics, etcd-health-monitor, setup (init), etcd-ensure-env-vars (init), etcd-resources-copy (init)
ERRO[0000] exec failed: container_linux.go:380: starting container process caused: exec: "-n": executable file not found in $PATH 
command terminated with exit code 1

since the last parameter in oc rsh is command to execute:

Usage:
  oc rsh [-c CONTAINER] [flags] (POD | TYPE/NAME) COMMAND [args...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant