A good way to use screen in varying situations

Anyone who uses GNU/screen knows how awesome it is.  I use it mainly in two situations:
  when i have one terminal connection (ssh) and want to multitask
  when i have a process that i never want to lose (rtorrent, irssi) while logging in/out playing with X etc.
Yesterday, i came up with a pretty sweet way (i think) of using screen for both of these situations without
  changing current habits (what commands i use day to day)
  affecting current keybinds
  using any crazy complicated scripts
I thought i'd share this with you guys in case anyone else can find it useful.
basically i set up one main ~/.screenrc which defines all my screen options (shell, term, hardstatus, etc).  then i have separate "screenrc_extension" files that only define what tabs to load when screen starts.  i then choose which "screenrc_extension" by use of environment variables
> grep ^source .screenrc
source "$SCREEN_CONF_DIR/$SCREEN_CONF"
> echo $SCREEN_CONF_DIR/$SCREEN_CONF
/home/patrick/.screen/configs/main
> cat .screen/configs/main
# example: screen -t [name] [command]
screen -t mail mutt
screen -t music ncmpcpp
#screen -t calendar wyrd
so here you can (hopefully) see that when i run screen in a clean environment it uses the two exported environment variables to call .screen/configs/main and load the tabs i want 90% of the time.
everything else happens in ~/.bashrc:
# dynamically choose which tabs load in screen
export SCREEN_CONF_DIR="$HOME/.screen/configs"
export SCREEN_CONF="main"
alias rtorrent='SCREEN_CONF=rtorrent screen -S rtorrent -D -R rtorrent'
alias irssi='SCREEN_CONF=irssi screen -S irssi -D -R irssi'
the aliases are key.
> SCREEN_CONF=irssi cat $SCREEN_CONF_DIR/$SCREEN_CONF
# example screen -t [name] [command]
screen -t irc irssi
> SCREEN_CONF=rtorrent cat $SCREEN_CONF_DIR/$SCREEN_CONF
# example: screen -t [name] [command]
screen -t torrents rtorrent
so when i type 'rtorrent' the alias will set the environment variable so the right 'screenrc_extension' is used, re attach any running rtorrent-screens here and now, or create one if needed.  the -S names the session so that any subsequent -D -Rs can find and reattach it explicitly.
and the same thing happens for 'irssi' (or any other app you'd want to use with this approach).
so i can use the same three commands (screen, rtorrent, irssi) just as always and i get this super-convenient behavior.

Looks cool.  I use screen pretty much the same way you do, so your idea fits nicely

Similar Messages

  • Is it good way of using this?

    Hi Experts,
                     Is it using inside loop ,  select single -
    statement,  is it good way of using this during performance? Pls suggest me

    //Is it using inside loop , select single -
    statement, is it good way of using this during performance? Pls suggest me
    See
    loop at itab.
           select single ...
           endloop.
    This is as good as executing the select statement the number of times as the entries in table itab.
    You can use this but when it comes to performance then say suppose 10000 entries are there then select is executed 10000 times .
    If u do a Sql trace ST05 on the code it will show u in minute(s) .
    So if i do a select and read all the entries into an internal table and now compare this with the Read statement then the performance will be high .
    Regards,
    vijay.

  • TS3090 Is there any good way for using a network account locally on the server?

    We have a bunch of macs at home. I want to be able to login to a laptop and have my account (home dir) in sync with de desktop account in a noninvasive way. 
    For achieving this I thought  promoting one imac to be a network profile server would be a good solution.
    This way we can work on any machine and sync portable home directories (phd) with our laptops.
    The server should also be usable as a workstation.
    One problem is: is possible to login on the server (locally) and work in a network account?
    I know it is possible, but this article describes issues.
    Also i am concerned about perfomance because files wil be mounted over afp rather than being on the harddisk. (one workaround would be to have a phd on the desktop, this would however not be possible on the server itsself (unless you have two copies of the home directory there))
    Does anyone have any experience with a simular situation or perhaps some other helpfull insights.

    Sorry, you must have edited your message. When I saw it, only the title showed .
    Embedded is what you want. You can change the windows apperance (e.g. hide the scroll bars) by changing the VI properties.
    Uncheck "request control" in the web publishing wizard, and it will be read only.
    Works fine here in LabVIEW 7.1. I don't remember if 6.1 had any limitations.
    LabVIEW Champion . Do more with less code and in less time .

  • Any way to use Screen Sharing in Full Screen mode?

    "Back to my Mac" screen sharing works great for me, but my remote screen is small enough as it is for a windowed VNC session... is there any way to switch to Full Screen in the Screen Sharing application?
    thanks!

    Did you go to the "Screen Sharing" menu and select "Preferences?" I don't see full screen, but there are some view options.

  • Could Troubleshoot a Mac Using Screen Share From 30 Km Away?

    Hi. How far does Screen Share work? Could it be used to troubleshoot a Mac from another city or from a really far place?
    Do you have full access to the other Mac using Screen Share. What can it do?
    Gbu.

    It would be most accurate to say it works exactly as it would as if you were sitting in front of the actual Mac. For example, if you do something like install software and the other Mac asks you for the admin password for that account, and you don't know it, the installation will not proceed. But otherwise you can click and drag and type anything you want.
    Screen sharing works a lot like the other "sharing" services on a Mac, it is primarily and most easily used on a local network, but there are ways to use Screen Sharing across the Internet. They are the same ways as for any other network sharing service, which is, you have to know the IP address of the router that the Mac is behind, and there must be a port open the router to let outsiders in who know the password, and then you tunnel through to the actual Mac you want. You can look up Mac screen sharing over the web in Google.

  • Is there a way to use proper mainland chinese characters on an ipad instead of the apple variants?

    I have been learning Chinese at University, and I bought an iPad to help my studies and I have found that Apple for the international keyboard has variants for many different chinese characters. Why is this and is there a way to use the chinese characters that 1.6 billn people use rather than the Apple variants? Will Apple be addressing this at all?

    No, The simple and traditional are fine, but when typing in simplified there choices for say, 将 or 骨 are different from both Simplified and Traditional entirely. If I had copied Apple's characters in tests I would have lost grades. I've never seen it happen on another operating system and unfortunatley Microsoft beats Apple in this field; hence why I call them Apple variants. I'm not the only one who has see this problem. The only way to get what I would call authentic chinese characters is with the method that is stated above. I found this solution in the thread titled "Chinese characters misrepresented". There are screen shots there too. I would love to find out how/why Apple chose this system for chinese.

  • How to uncheck a checkbox using Screen Variants?

    Hi Masters!
    Anybody knows how to uncheck a checkbox that is already checked by default?
    I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn't work), but at runtime it always shows the checkbox checked.
    At the same transaction there is a unchecked checkbox by default witch I can check it with a screen variant, but somehow I can't do the other way around...
    Any suggestions?
    Many thanks in advance,
    José Omar

    I checked the code and found something interesting. The
    variable I'm trying to uncheck is GV_WITH_CONTACT_PERSON.
    It's declaration:
    DATA: GV_WITH_CONTACT_PERSON TYPE XFELD VALUE 'X'.
    At the initialization of the program (at the first screen module):
    PROCESS BEFORE OUTPUT.
    MODULE INITIAL_STATE.
    And inside the MODULE INITIAL_STATE there is also:
    MOVE 'X' TO GV_WITH_CONTACT_PERSON.
    So there are places in the code that the checkbox is checked.
    Now we get another problem. I don't now when the values set at a screen variant are inserted in the screen. Is it possible that the code itself is overwriting the value set with a screen variant? Or is this not possible at this point in the code?
    Many Thanks,
    José Omar

  • Does anyone know if apple's one-to-one program would be a good way to learn how to use logic pro or am I better off going to school to learn audio engineering or something?

    Of course going to school would be a good option, but I want to know if one-to-one is also a good way to learn how to use logic pro. Has anyone been through the one-to-one program for logic pro and can say that they learned how to use logic pro well because of it?

    For sure, one to one training, if given by a tutor who is capable, will hand you the means to build up self-confidence  and will therefore let you operate the hard/software in an intelligent manner, instead of going for the trial and error method which has its pro's and con's too. Once you've passed this beginners phase you will make your own decisions intelligently and then you will also start to get experience and learn even from your mistakes. Something like that in theory and the rest is up to you!
    Have a nice day

  • I went to use my ipod touch 8GB but it wasn't working, when i looked closer it was on just very very dim. The brightness is turned up all the way and the screen is practically black.. does anyone know how to fix it?

    I went to use my ipod touch 8GB but it wasn't working, when i looked closer it was on just very very dim. The brightness is turned up all the way and the screen is practically black.. does anyone know how to fix it?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings If yu can see the screen enough to do it)
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store since you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Question When I do a search for an image I only have a limited number of images. There used to be a ton of pictures on my screen and an unlimited amount of pictures to look through. Is there a way of changing this back to the way it used to be???

    Question
    When I do a search for an image I only have a limited number of images. There used to be a ton of pictures on my screen and an unlimited amount of pictures to look through. Is there a way of changing this back to the way it used to be???

    Thanks.  So there's no means of knowing whether a text message has been delivered, not to mention time of delivery.  Perhaps I've gone for the wrong phone.  It might do a lot but seems to miss out on some basics.

  • I would like to know if there a way to use window (via bootcamp) and use a dual screen with the use of thunderbolt?

    I would like to know if there a way to use window (via bootcamp) and use a dual screen with the use of thunderbolt?

    There are very specific requirements for using an iMac as an external display.
    From Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    What are the requirements for TDM?
    A Mac notebook or desktop with a Mini DisplayPort or Thunderbolt connection
    A Thunderbolt or Mini DisplayPort cable
    A supported iMac with OS X 10.6.1 or later. The table below shows iMac computers that support TDM, the required cables, and the port of the computer to which you are connecting the iMac.
    iMac Model
    Cable Supported
    Port on Source Computer
    iMac (27-inch Late 2009)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (27-inch Mid 2010)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (Mid 2011)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (Mid 2012 and later)
    Thunderbolt to Thunderbolt
    Thunderbolt
    Note that the iMac (Retina 5K, 27-inch, Late 2014) does not support Target Display Mode.

  • Actual GI date mandatory using screen variant SHD0

    Hello All,
    I have a requirement to make the Actual GI Date as mandatory field in Vl01n.
    I am using  screen variant in SHD0
    TRANSACTION CODE -- VL01N and
    SCREEN VARIANT --- BUS2124_DEC_CREATE_1102
    PROGRAM -
    SAPMV50A
    SCREEN ---1102
    and click on change mode
    This will lead to nex screen where you can find the Field ACTUAL GI DATE against which the field status are available
    Check the REQUIRED field and save it.
    Here comes the problem when i tested from SHD0 transcation the actual GI date is showing has mandatory field but when i Run VL01n Transaction  Actual GI date is not showing has mandatory field. Could you please tell me what may be the problem?
    or let me know if any other method to make the  Actual GI date has mandatory field in Vl03n.
    Thanks in Advance.
    Satish

    You should've created a transaction variant. (You can attach the screen variant to the trxn variant as well).
    In SHD0 there is a tab "Standard Variant", there you've to enter the name of your transaction variant & activate it. This will bind the trxn variant with the trxn & everytime you run the trxn your trxn variant will be executed.
    BR,
    Suhas

  • HT2731 I use ISP Plusnet on my PC for IE & email. Now I have also an ipad what is an easy/good way to set up email from & to thje ipad?

    I use Plusnet ISP & email for my PC. What is a good way to set up email on my new iPad? Should I use Plusnet or set up another email account on Google, say? Thank you in advance.

    PC virus won't run on iPad.

  • Best way to clean screens on MacBookPro and iPhone.  Safe products to use.

    Best way to clean screens on MacBookPro and iPhone.  Safe products to use.

    A microfiber cloth damped with water.
    Turn off first.

  • Is there a way when using iTunes Visualiser, I can put the lyrics on screen?

    Is there a way when using iTunes Visualizer, I can put the lyrics of the song i am playing on screen? It would be really cool.

    I got it to work now by writing code to convert it back to an array. Thanks

Maybe you are looking for

  • SAP Gui Logon - application server shutdown

    Hi! I'have installed SAP Netweaver 7.0 Abap TRIAL on my Windows XP Service Pack 3. After lunching NSP-->Start Application Server, all is ok. But when i try to Logon with Sap Gui 7.10, i get this error : application server shutdown Component     DPTM

  • Where do I change the color of this text in the blog page?

    I'm trying to add a blog page to my non-template iWeb site. On the Main Page, I'm unable to change the color of the font in the hyperlinks, where the default reads "Day of Longboarding" and "Read more-". I don't know what I might be overlooking. Any

  • Value of the start in the Select with in a Hierarchical Query

    Exist any way for put in the select the value of the start with in a Hierarchical Query? An example: I'll need sth like CTH@> select n code, level, np code_parent, 1 code_first_parent 2 from demo 3 start with n=1 4 connect by np = prior n 5 ; CODE LE

  • Flex 2.0 Update/Patch

    Hi all I experienced a lot of bugs in Flex 2.0 (some of them are well known issues to Adobe). My question is: will Adobe ever come with a patch for Flex 2.0? Right now I'm spending too much time 4 finding workarounds for the bugs I experienced. Thank

  • Ink options for C7180. I want to use 363 in Europe; not 02 ink.

    I purchased a C7180 in the US a few years ago. It works great. I live in Germany now and they do not sell 02 ink in Europe. However, they do sell 363 Ink, which is the same EXACT ink. Identical serial numbers, shape, size, and even and HP official pr