[kwlug-disc] ssh into remote with initial command, and stick!

unsolicited unsolicited at swiz.ca
Wed May 22 21:29:06 EDT 2013


But what is causing the initial difficulty?

It doesn't seem unreasonable to give ssh an initial command to run, such 
as bash, and to give bash an initial command to run, such as top.

What am I missing / misunderstanding?

On 13-05-22 07:32 PM, Khalid Baheyeldin wrote:
> If what Paul said is what you want, then just create a ~/.screenrc file and
> put these two lines in it:
>
> screen -t shell    1 bash # This is just a shell
> screen -t top      2 bash -c top # This is your top
>
> Top will be in the 2nd "window".




More information about the kwlug-disc mailing list