Discussion on:

7
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Technorati
aureolin 25th Oct 2007
___(begin quote)_______________________
#!/bin/sh

/usr/bin/screen -O -S screens -c ~/.screenrc-startscreens

Next, create the file ~/.screenrc-startscreens with the following contents:

startup_message off

chdir

autodetach on

hardstatus alwayslastline

hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

screen -t shell0 0

screen -t irssi 1 /usr/bin/irssi

screen -t mutt 2 /usr/bin/mutt
___(end quote)_______________________

This is a prime example of why Linux will always remain the exclusive province of the technorati and why it will not be taking over the general desktop in the foreseeable future.

Nothing against Linux, but you can't sell this to the general public. If you ever want to replace windoze, then operating Linux needs to be like driving a car: operating it must be focussed at the lowest common denominator. That ain't gonna happen with Linux.

Steve G.
... doesn't mean it is required.

It sounds like you are saying that because Linux offers complicated tools for the hardcore techie to use, general users will never use Linux...

The "general public" would be no more interested in using the functionality of screen than the average MS Access user would be of normalizing his/her data to forth normal form... But they could if they wanted to.
//Begin rant
For me creating a "simple" shell script to get monotonous chores done is becoming a regular part of my Linux life. When I look at this part in the Bash script;:

hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

I hit a brick wall. There's so many general expressions here with percent signs and curly braces; I find myself unable to fathom what's being called to do what? I know someone's laughing and thinking; they'll never get it, but it's stuff like this that makes people run in the other direction. PLEASE be considerate when writing scripts and put in comment lines so mere HUMANS will know what's going on!

I hope this isn't a case of post "some cool looking code" to show how much I know while alienating potential open source adopters? If it is; this is just lame and reeks of insecurity in the poster further fueling insecurity in it's curious but much less knowledgeable readers who might need a little hand holding to get over the Linux learning curve hump! Thanks a bunch!!
//End rant
0 Votes
+ -
Those aren't regular expressions; they are screen-specific options. This makes the status line incredibly customizable.

This article explains the hardstatus and caption options: http://www.debian-administration.org/articles/560
0 Votes
+ -
Technorati
Penguin_me 26th Oct 2007
From your post it seems you're saying that because of this handy little bash script for screen you're scared of Linux ? You can almost always avoid using the command line in Linux, sometimes you will need to use it, for instance if you compile and install something ("./configure" "make" "make install" are the commands normally). Take a look at Ubuntu, or Fedora, totally GUI Desktop oriented, basically "Plug-and-play" hardware support and quick easy install. Don't judge the entire OS by the fact that the command line can be intimidating, the Windows CLI can be intimidating too, but you rarely use it I'm sure.
Screen rocks. It is this type of tool that makes Windows look silly. RDP can't touch this from a resource standpoint. If you are at the local coffee shop you can connect remotely start that 2 hour compile/backup script/analysis query ..or whatever, shutdown your laptop, go home, and reconnect to the same exact session to see what the output was. Great tool...wish I had found it 5 years ago...
0 Votes
+ -
SCREEN on AIX
fascorp@... 29th Oct 2007
Anyone knows if exists this tool for the AIX platform ? It will be very useful in my daily work
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.