Results 1 to 2 of 2

Thread: .screenrc

  1. #1
    Join Date
    Mar 2009
    Beans
    1,982

    .screenrc

    Hi.

    I've got a bunch of different Ubuntu Server images, some on VMs and some on real hardware.

    Each box, I generally have one or maybe a few apps, and for admin I want to have a set of terminal windows open and in consistent spots so I can easily switch.

    I've been using screen, but when I reboot I lose the setup. I've been trying to get a .screenrc and I can't seem to get it working.

    Here's an example:
    Code:
    screen -t '/var/log/messages' -- and then I want to cd to /var/log/messages
    screen -t 'tomcat7' -- and then I want to change to the tomcat7 user, and change to the tomcat home directory.
    There are often over a dozen screens, and sometimes I would like to source a file or execute some other script, and then end up in a shell.

    When I use sudo in .screenrc the shell exits when I type in the password.

    Anyone have ideas for help? Even a similar .screenrc that somebody can post.

    Thanks.

  2. #2
    Join Date
    Mar 2009
    Beans
    1,982

    Re: .screenrc

    I got my 'change the user' part figured out, but not changing directories.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •