smart Digest, Vol 21, Issue 2

Grant McWilliams grantmasterflash at gmail.com
Wed May 9 20:49:35 PDT 2007


I hadn't thought of using Python because I don't know it as well and this
certain project needs to be
maintainable by the company I'm consulting for after I'm done and gone,
hence the shell script.

I've spent quite a lot of time digging through what little docs there are
concerning smart and I've decided
as soon as I'm done with my current project I'm writing exhaustive Smart
documentation including examples
because the frustration level has been high. There just aren't many examples
on the net about this even though
it's getting used. I needed to install software across a secure channel
which brought me to smart because of the
mention in the doc about scp being a supported protocol. No examples, no
more data, nothing. I did get it to work
and like I said I'll be writing documentation even if it doesn't get used
officially because it needs to be done.

I don't have the time to give back in the form of coding but documentation I
can find time for so that's my gift, wanted or not. :-)

Grant

On 5/9/07, smart-request at lists.labix.org <smart-request at lists.labix.org>
wrote:
>
> Send smart mailing list submissions to
>         smart at lists.labix.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.labix.org/listinfo.cgi/smart-labix.org
> or, via email, send a message with subject or body 'help' to
>         smart-request at lists.labix.org
>
> You can reach the person managing the list at
>         smart-owner at lists.labix.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of smart digest..."
>
>
> Today's Topics:
>
>    1. Re: smart channel --show doesn't return proper code
>       (Gustavo Niemeyer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 09 May 2007 19:52:22 -0300
> From: Gustavo Niemeyer <gustavo at niemeyer.net>
> Subject: Re: smart channel --show doesn't return proper code
> To: smart at labix.org
> Message-ID: <464250A6.1020904 at niemeyer.net>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Grant,
>
> > When I do smart channel --show <channelname> and the channel doesn't
> > exist shouldn't smart return a 1 instead of a 0? It seems to be
> > returning 0's for everything.
> >
> > I have  a script that checks to see if a channel has already been
> > added and if not adds it. We're having to take the output of channel
> > --show and grep it instead of relying on the return code. Am I off on
> > this or maybe not understanding why smart channel --show always
> > returns a 0 return code?
>
> Yep, you're right.  Many commands are not quite scripting-ready yet.
>
> Did you consider using Python to perform that?  Should be quite
> simple to use Smart as a library.
>
> --
> Gustavo Niemeyer
> http://niemeyer.net
>
>
> ------------------------------
>
> _______________________________________________
> Smart Package Manager mailing list
> smart at labix.org
> http://lists.labix.org/listinfo.cgi/smart-labix.org
>
>
> End of smart Digest, Vol 21, Issue 2
> ************************************
>



-- 
Some people, when confronted with a problem, think "I know, I'll use
Windows."
Now they have two problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20070509/9cf2ad4b/attachment-0002.htm>


More information about the Smart mailing list