[Cialug] icon+bash srcipt

Scott Yates Scott at yatesframe.com
Mon Apr 1 19:05:53 CDT 2013


I THOUGHT that looked odd.

Normally the use of pipe in Unix/Linux is to send the standard output of
the command on the left of the pipe, to the command on the right of the
pipe.

This is a very common and VERY powerful idiom.

This has some interesting examples:
http://www.linuxnix.com/2012/07/23-awesome-less-known-linuxunix-command-chaining-examples.html





On Mon, Apr 1, 2013 at 6:59 PM, Dan Hockey <icepuck3k at yahoo.com> wrote:

> It was the su -c that worked instead of su |
>
> > From: Paul Gray <gray at cs.uni.edu>
> > Subject: Re: [Cialug] icon+bash srcipt
> > To: cialug at cialug.org
> > Date: Sunday, March 31, 2013, 7:58 PM
> > On 03/31/2013 07:51 PM, Dan Hockey
> > wrote:
> > > ------------------------------------------------
> > > #!/bin/bash
> > >
> > > cd /home/debian/SimpleIDE-0-7-2
> > > su | ./simpleide
> > > ------------------------------------------------
> > > su works but fails after entering the password because
> > it didn't change dirs.
> >
> >
> > 2 things:
> >
> > Why not just su | home/debian/SimpleIDE-0-7-2/simpleide
> >
> > Also, I expect you to have an X window permission issue, and
> > you'll
> > likely find that sux is the command you're really looking
> > for.
> >
> >
> > --
> > Paul Gray
> >
> >            -o)
> > 314 East Gym, Dept. of Computer Science
> >      /\\
> > University of Northern Iowa
> >               _\_V
> >  Message void if penguin violated ...  Don't mess with
> > the penguin
> >  No one says, "Hey, I can't read that ASCII attachment ya
> > sent me."
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list