Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

what about this :

ssh bugs2 "bash -ic remotealias"

for me it almost works, the alias is :

alias remotealias='echo 123123123'

and the output is :

bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
123123123

EDIT: But stealing from herehere, the cleanest solution is to add the following line into the remote .bashrc file:

shopt -s expand_aliases

what about this :

ssh bugs2 "bash -ic remotealias"

for me it almost works, the alias is :

alias remotealias='echo 123123123'

and the output is :

bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
123123123

EDIT: But stealing from here, the cleanest solution is to add the following line into the remote .bashrc file:

shopt -s expand_aliases

what about this :

ssh bugs2 "bash -ic remotealias"

for me it almost works, the alias is :

alias remotealias='echo 123123123'

and the output is :

bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
123123123

EDIT: But stealing from here, the cleanest solution is to add the following line into the remote .bashrc file:

shopt -s expand_aliases
Post Undeleted by lese
Post Deleted by lese
Source Link
lese
  • 2.8k
  • 5
  • 23
  • 32

what about this :

ssh bugs2 "bash -ic remotealias"

for me it almost works, the alias is :

alias remotealias='echo 123123123'

and the output is :

bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
123123123

EDIT: But stealing from here, the cleanest solution is to add the following line into the remote .bashrc file:

shopt -s expand_aliases