tags.
#!/bin/bash
#Function 1
FN1 ()
{
ls -l
}
#Main run
ssh user@host FN1
exit 0
Yeah, I know it will not work, but I'm asking how to make it to work
I'm suspecting that it would be impossible to do that, but then one never know!
[/quote]
[indent]
You must define the function in the remote shell: