I hadn't thought of using Python because I don't know it as well and this certain project needs to be<br>maintainable by the company I'm consulting for after I'm done and gone, hence the shell script.<br><br>
I've spent quite a lot of time digging through what little docs there are concerning smart and I've decided<br>as soon as I'm done with my current project I'm writing exhaustive Smart documentation including examples
<br>because the frustration level has been high. There just aren't many examples on the net about this even though<br>it's getting used. I needed to install software across a secure channel which brought me to smart because of the 
<br>mention in the doc about scp being a supported protocol. No examples, no more data, nothing. I did get it to work<br>and like I said I'll be writing documentation even if it doesn't get used officially because it needs to be done.
<br><br>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. :-)<br><br>Grant<br><br><div><span class="gmail_quote">On 5/9/07, <b class="gmail_sendername">
<a href="mailto:smart-request@lists.labix.org">smart-request@lists.labix.org</a></b> <<a href="mailto:smart-request@lists.labix.org">smart-request@lists.labix.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send smart mailing list submissions to<br>        <a href="mailto:smart@lists.labix.org">smart@lists.labix.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>        <a href="http://lists.labix.org/listinfo.cgi/smart-labix.org">
http://lists.labix.org/listinfo.cgi/smart-labix.org</a><br>or, via email, send a message with subject or body 'help' to<br>        <a href="mailto:smart-request@lists.labix.org">smart-request@lists.labix.org</a><br>
<br>You can reach the person managing the list at<br>        <a href="mailto:smart-owner@lists.labix.org">smart-owner@lists.labix.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of smart digest..."
<br><br><br>Today's Topics:<br><br>   1. Re: smart channel --show doesn't return proper code<br>      (Gustavo Niemeyer)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1
<br>Date: Wed, 09 May 2007 19:52:22 -0300<br>From: Gustavo Niemeyer <<a href="mailto:gustavo@niemeyer.net">gustavo@niemeyer.net</a>><br>Subject: Re: smart channel --show doesn't return proper code<br>To: <a href="mailto:smart@labix.org">
smart@labix.org</a><br>Message-ID: <<a href="mailto:464250A6.1020904@niemeyer.net">464250A6.1020904@niemeyer.net</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Hi Grant,<br><br>> When I do smart channel --show <channelname> and the channel doesn't
<br>> exist shouldn't smart return a 1 instead of a 0? It seems to be<br>> returning 0's for everything.<br>><br>> I have  a script that checks to see if a channel has already been<br>> added and if not adds it. We're having to take the output of channel
<br>> --show and grep it instead of relying on the return code. Am I off on<br>> this or maybe not understanding why smart channel --show always<br>> returns a 0 return code?<br><br>Yep, you're right.  Many commands are not quite scripting-ready yet.
<br><br>Did you consider using Python to perform that?  Should be quite<br>simple to use Smart as a library.<br><br>--<br>Gustavo Niemeyer<br><a href="http://niemeyer.net">http://niemeyer.net</a><br><br><br>------------------------------
<br><br>_______________________________________________<br>Smart Package Manager mailing list<br><a href="mailto:smart@labix.org">smart@labix.org</a><br><a href="http://lists.labix.org/listinfo.cgi/smart-labix.org">http://lists.labix.org/listinfo.cgi/smart-labix.org
</a><br><br><br>End of smart Digest, Vol 21, Issue 2<br>************************************<br></blockquote></div><br><br clear="all"><br>-- <br>Some people, when confronted with a problem, think "I know, I'll use Windows." 
<br>Now they have two problems.