sudo -u user ssh 10.0.0.2 "screen -DRRS Fred"? 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 > > without having to remember to actually do the screen command. The trouble is, > an alias will execute the ssh, and then execute the screen command AFTER the > ssh terminates, not sending it to execute eon the remote Mac. > > So, I was hoping there might be a way to do this in Terminal.app? > > /* > For the record, I would be using several different aliases, one for each > machine, but I don't think that's relevant. > */ > > -- > Sometimes the gods have no taste at all. They allow sunrises and sunsets > in ridiculous pink and blue hues that any professional artist would > dismiss as the work of some enthsiastic amateur who'd never looked at a > real sunset. This was one of those sunrises. It was the kind of sunrise > a man looks at and says, 'No real sunrise could paint the sky Surgical > Appliance Pink.' Nevertheless, it was beautiful. --The Thief of Time > > _______________________________________________ > MacOSX-talk mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/macosx-talk
-- Best Regards, John Musbach _______________________________________________ MacOSX-talk mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-talk
