<p dir="ltr">Thanks! I've used do book with publican (same process that RedHat uses to publish manuals) and really didn't have another process example. I'll add it to the next iteration (being re-done in docbook).</p>
<div class="gmail_quote">On Aug 15, 2013 9:15 AM, "George Allen" <<a href="mailto:glallen01@gmail.com">glallen01@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Possibly a good example for the docbook would be the Mercurial<br>
documentation: <a href="https://bitbucket.org/bos/hgbook/src" target="_blank">https://bitbucket.org/bos/hgbook/src</a><br>
Their Makefile executes the examples so they get pulled into the book directly.<br>
<br>
On Wed, Aug 14, 2013 at 11:58 AM, Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>> wrote:<br>
> Correct. The * on the end is wrong. And there needs to be a -r statement<br>
> explanation.<br>
><br>
> Actually, that whole page needs many more examples.<br>
><br>
><br>
> On Wed, Aug 14, 2013 at 11:42 AM, Scott Plante <<a href="mailto:splante@insightsys.com">splante@insightsys.com</a>><br>
> wrote:<br>
>><br>
>> I don't believe this is correct:<br>
>> <a href="http://jimkinney.us/3.%2Bssh%252C%2Bscp%2Band%2Brsync.html" target="_blank">http://jimkinney.us/3.%2Bssh%252C%2Bscp%2Band%2Brsync.html</a><br>
>><br>
>> scp /path/to/files/ <username>@<hostname>:/path/to/new/files/* will copy<br>
>> all of the files to the /path/to/new/files/ location on the <hostname><br>
>> system.<br>
>><br>
>> That produces "/path/to/files: not a regular file" error for me. Perhaps<br>
>> you meant:<br>
>> scp /path/to/files/* <username>@<hostname>:/path/to/new/files/ will copy<br>
>> all of the files to the /path/to/new/files/ location on the <hostname><br>
>> system.<br>
>><br>
>> Or alternatively:<br>
>> scp -r /path/to/files <username>@<hostname>:/path/to/new/files<br>
>><br>
>> Of course, the -r will copy subdirectories as well (as I'm sure you know).<br>
>> I assume this was a typo, but perhaps some version of scp has special<br>
>> processing of a trailing asterisk?<br>
>><br>
>> ~~~<br>
>><br>
>> On a broader note, especially for Windows users, I think it's important to<br>
>> discuss parameter expansion somewhere. I say particularly for Windows users<br>
>> because I believe (and my batch file skills are minimal) that in Windows,<br>
>> the individual commands are responsible for expanding converting wildcards<br>
>> into individual files, whereas that happens before the individual command<br>
>> sees the arguments in *nix. So in Windows, when you type:<br>
>><br>
>> copy *.txt C:\temp<br>
>><br>
>> The copy command sees those two arguments and is responsible for figuring<br>
>> out that the current directory has a.txt b.txt and c.txt. It can be a subtle<br>
>> difference for new shell users at first, but an important one, that here the<br>
>> shell expands those arguments before the command sees them. So a similar<br>
>> line in Linux:<br>
>><br>
>> cp *.txt /tmp<br>
>><br>
>> Would appear to the cp command as:<br>
>><br>
>> cp a.txt b.txt c.txt /tmp<br>
>><br>
>> It has no idea whether you typed out the individual files or typed<br>
>> "*.txt". (The cp command *likes* to be anthropomorphized!)<br>
>><br>
>> Maybe you feel that's too advanced a concept for this guide, and as I've<br>
>> just demonstrated, it's difficult to explain it very clearly ;-) but I've<br>
>> noticed new users get very confused about why commands sometimes act the way<br>
>> they do in Linux because of this difference. I wish I could remember a<br>
>> particular example right now--perhaps others on the list will add some.<br>
>><br>
>> Scott<br>
>><br>
>> ________________________________<br>
>> From: "Jim Kinney" <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>><br>
>> To: "Atlanta Linux Enthusiasts - Yes! We run Linux!" <<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
>> Sent: Tuesday, August 13, 2013 7:41:33 AM<br>
>><br>
>> Subject: [ale] windows to Linux user conversion training guide<br>
>><br>
>> When I was working at another location, one of the tasks I got to do was<br>
>> to write a training guide to take a windows user and make them a command<br>
>> line junkie in Linux. It was a fun project and the students that used it<br>
>> were enthusiastic about the guide.<br>
>><br>
>> It's been far too long, but I finally extracted the bulk of that guide and<br>
>> put it up on my site for others to see. Feedback is welcome!<br>
>><br>
>> It's not complete and due to the removal of much very specific stuff from<br>
>> where it was written it's a bit clunky now. also the migration away from a<br>
>> good but proprietary wiki (Atlassian Confluence) to plain html is less than<br>
>> stellar. I plan to do more from a docbook version for later html publication<br>
>> as soon as I can.<br>
>><br>
>> the guide is at <a href="http://jimkinney.us" target="_blank">http://jimkinney.us</a> for now.<br>
>><br>
>> --<br>
>> --<br>
>> James P. Kinney III<br>
>><br>
>> Every time you stop a school, you will have to build a jail. What you gain<br>
>> at one end you lose at the other. It's like feeding a dog on his own tail.<br>
>> It won't fatten the dog.<br>
>> - Speech 11/23/1900 Mark Twain<br>
>><br>
>> <a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> --<br>
> James P. Kinney III<br>
><br>
> Every time you stop a school, you will have to build a jail. What you gain<br>
> at one end you lose at the other. It's like feeding a dog on his own tail.<br>
> It won't fatten the dog.<br>
> - Speech 11/23/1900 Mark Twain<br>
><br>
> <a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>