Хочу, чтобы код функции foofunc исполнялся на хосте remhost.
#!/bin/bash
foofunc(){
command one $var1
...
command n $varn
}
some code
....
ssh user@remhost "foofunc"
...
some code
Не получается. Помогите.
Хочу, чтобы код функции foofunc исполнялся на хосте remhost.
#!/bin/bash
foofunc(){
command one $var1
...
command n $varn
}
some code
....
ssh user@remhost "foofunc"
...
some code
Не получается. Помогите.