On Fri, Oct 19, 2012 at 6:50 PM, LuKreme <[email protected]> wrote:
> When I ssh in to my other Macs I want to always execute a command like 
> `screen` as the first thing I do. However, I don't want to run that command 
> if I am opening a terminal window directly on that machine.
>
> Basically, what I want to do is simply have an alias that does both of these 
> commands:
>
> 1) ssh [email protected]
> 2) screen -DRRS Fred

When I try all the examples that have been posted (ssh host screen), I
get an error that it "Must be connected to a terminal" and the session
ends.

I get the same error for tmux. Why aren't you using tmux?

Now, you could probably set something up in your .bashrc on the remote
side that checks the login source and executes the screen command as
appropriate.

-- 
arno  s  hautala    /-|   [email protected]

pgp b2c9d448
_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to