On Fri, Jun 13, 2008 at 05:57:12PM -0400, [EMAIL PROTECTED] wrote:

> I created a couple wrapper scripts around Mrxvt that could
> (possibly) be useful to others. One adds a --hostfile
> argument to Mrxvt (a "hostfile" being a text file with a
> hostname on each line), which allows one to fire up an Mrxvt
> with each tab ssh'd to each machine. The other launches
> Mrxvt with a GNU Screen instance (from "screen -ls") in each
> tab. It uses profiles and a temporary on-the-fly .mrxvtrc
> file to do this.

If fifo's are working on your system, using that is a much better
solution than a temp mrxvtrc! Your script can be something like

    mrxvt --useFifo & pid=$!

    # Wait until /tmp/.mrxvt-$pid is created. Either use inotifywait, or
    # a little sleep 1 loop

    for i in (hosts1 host2...); do
        echo "NewTab ssh $i" > /tmp/.mrxvt-$pid
    done

    # Optionally destroy the fifo if you don't plan on using it again.
    # It an always be re-reated by the running mrxvt on demand.
    echo "UseFifo 0" > /tmp/.mrxvt-$pid

> Is there some sort of repository and/or wiki page for such things?

Feel free to create a wiki page. There's also a "scripts" directory in
the source archive I can add this to,

GI

-- 
100 THINGS I'D DO IF I EVER BECAME AN EVIL OVERLORD
28. My pet monster will be kept in a secure cage from which it cannot
escape and into which I could not accidentally stumble.

Attachment: pgpf2dwnDFlE4.pgp
Description: PGP signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Materm-usage mailing list
Materm-usage@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/materm-usage
Mrxvt home page: http://materm.sourceforge.net

Reply via email to