Hi all,

Am having some weird problems with the Korn Shell that has left me puzzled for days...

Consider having a line which resembles this in your script file:

ssh username@host "command"

ie. ssh rockysfr@localhost "ksh"

This should put you in the ksh environment. Now, the strange thing is that when I attempt to use a function such as more in this shell, I get no output, and you get stuck in the shell (can type, press enter, etc but you won't be able to exit till CTRL-C). Any explanations on why this is happening?

Thanks.

Hi,

When you are using `ssh domain.......` then command remains on the same node, if you want to use any subroutine/function from another machine just try to do `ssh domain perl test.pl` file, this will give you your output as well as your command back in old prompt.

As we fire command through ssh, Secure shell doesn't allow to keep persistent connection to perform further operations.

Please correct me if i am wrong.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.