Re: Piping Commands to a shell through lsxcommand.

Brian Wolven <[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <[email protected]>
Fidel wrote:
> Hi beloved Steppers
> 
> I am trying to get my todo.txt (todotxt.com) Completely editable
> through lsxcommand. The simple parts are all done, I can view my
> scrolling todo list through xlabel, and I can add list items through
> lsxcommand, textedit and autorecycle. What I would like to do now is
> be able to delete list items and have all the functionality of the
> original cygwin todo.sh just by using lsxcommand. To my mind I would
> have to pipe commands from lsxcommand to a bash shell. But another
> thing I'm thinking is that really... All of this should be doable
> through textedit.
> 
> Can anybody give me some advice on either sending commands to a bash
> shell or how I might do the other stuff with textedit?  Thanks for any
> pointers anybody might have.
> 

I think you ought to be able to pass stuff to bash in a non-interactive 
mode. I haven't tried anything fancy, but the following worked from the 
lsxcommand line:

c:\cygwin\bin\bash -c "ls"

The docs say that you can specify the command and all the arguments this 
way, so it seems like you could set up an lsxcommand alias for each of 
the todo commands you'd like to run, and then interact with todo.sh via 
the lsxcommand line.

I'm sure you could do it with textedit, too, but that might not be the 
simplest way to go about this. =)


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.