On 05/27/11 14:53, Helmut Schneider wrote: > Hi, > > I'd like to supply a command to screen. Unfortunatly when using putty > or ssh nothing seems to happen:
screen? screen? I dimly recall a program called screen. Archaic piece of sh**, as I recall. > [helmut@OBSDHelmut ~]$ screen ls -la > [screen is terminating] > [helmut@OBSDHelmut ~]$ > > [helmut@BSDHelmut ~]$ ssh -t obsdhelmut screen ls -la > Enter passphrase for key '/home/helmut/.ssh/id_dsa': > [screen is terminating] > Connection to obsdhelmut closed. > [helmut@BSDHelmut ~]$ > > When doing this on a console it works fine. dunno what "works fine" means, but today, we use a program called "tmux", which is part of base OpenBSD. n...@fluffy.in.nickh.org /home/nick $ ssh backup "tmux -c 'ls -la /'" nick@backup's password: total 65500 drwxr-xr-x 17 root wheel 512 May 23 20:14 . drwxr-xr-x 17 root wheel 512 May 23 20:14 .. -rw-r--r-- 1 root wheel 578 Feb 28 2009 .cshrc -rw-r--r-- 1 root wheel 468 May 23 20:14 .profile drwxr-xr-x 2 root wheel 512 Mar 2 08:51 altroot drwxr-xr-x 2 root wheel 1024 Mar 2 08:53 bin ... Seems to do something more than you show. Not sure what you are trying to accomplish, and since you didn't explain, I'm not going to worry about it. :) Whatever you wish to do with screen, you can probably accomplish with tmux...most likely better, and if you can't figure out how to make it dance as you want, as it is part of OpenBSD, ask right here. http://www.openbsd.org/faq/faq7.html#tmux man tmux Introduce your Linux and other BSD users to tmux, they'll love it, other than the ones that love screen only because it hasn't changed in years... (several of my coworkers are absolutely going ga-ga over tmux and now pushing it more obnoxiously than me). Nick.