10-31-2009
scott,
cool, thanks. it worked.
8 More Discussions You Might Find Interesting
1. Programming
Has any setup samba 2.2.4 inside of unix ver 11.0, i am trying to mount a nfs mount on a w2k, and wxp box, and i was told that i had to upgrade to sambe 2.2.4, but the c compiler on ver 11.0 isnt ansii compatable, I could please use any help or directions on this matter...
thanks (0 Replies)
Discussion started by: marvin51796
0 Replies
2. UNIX for Dummies Questions & Answers
Hi, I am very new to Unix, do know some RedHat linux. I am wanting to install samba on my unix machine. Not sure where to start, any help would be very much appreciated.
Thanks,
Chris Lewis (4 Replies)
Discussion started by: lewy33
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am sorry I am total dummy in Unix. I am starting to explore a thing call "Samba".
From my initial and rough finding, I think Samba is only useful in providing Print services to PC platform users.
That is to say, The Unix machine which has Samba installed, is able to provide print... (3 Replies)
Discussion started by: champion
3 Replies
4. Solaris
Greetings..
I need SAMBA to implement a backup strategy , the problem is that i cant find it anywhere...
can u guys gimme a link to a sun compatilble version of samba ?
thanx thanx htanx.....
:rolleyes: (3 Replies)
Discussion started by: nEuRoMaNcEr
3 Replies
5. UNIX for Dummies Questions & Answers
Hey.
I have a question about adding users and maping theirs dirictorys.
Main Folder |
-User1 Folder
-User2 Folder
-User3 Folder
......
How can I add this users to have folders in the Main Folder ? any simple script?
And I... (0 Replies)
Discussion started by: net555
0 Replies
6. UNIX for Dummies Questions & Answers
currently, we are using SAMBA for our ftp way. can SAMBA be encrypted aka sftp ? (2 Replies)
Discussion started by: lawsongeek
2 Replies
7. Solaris
Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account.
If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies
8. Ubuntu
All;
I've done this before, but sure I'm typing in the wrong search terms, so not finding the help I need.
What I have to do: Set up Samba, smb.conf, smbclient, fstab and all other settings so I see both the Windows and Linux servers and their shares in the network, via Samba.
It's... (19 Replies)
Discussion started by: TBotNik
19 Replies
LEARN ABOUT DEBIAN
mustache
MUSTACHE(1) Mustache Manual MUSTACHE(1)
NAME
mustache -- Mustache processor
SYNOPSIS
mustache <YAML> <FILE>
mustache --compile <FILE>
mustache --tokens <FILE>
DESCRIPTION
Mustache is a logic-less templating system for HTML, config files, anything.
The mustache command processes a Mustache template preceded by YAML frontmatter from standard input and prints one or more documents to
standard output.
YAML frontmatter beings with --- on a single line, followed by YAML, ending with another --- on a single line, e.g.
---
names: [ {name: chris}, {name: mark}, {name: scott} ]
---
If you are unfamiliar with YAML, it is a superset of JSON. Valid JSON should work fine.
After the frontmatter should come any valid Mustache template. See mustache(5) for an overview of Mustache templates.
For example:
{{#names}}
Hi {{name}}!
{{/names}}
Now let's combine them.
$ cat data.yml
---
names: [ {name: chris}, {name: mark}, {name: scott} ]
---
$ cat template.mustache
{{#names}}
Hi {{name}}!
{{/names}}
$ cat data.yml template.mustache | mustache
Hi chris!
Hi mark!
Hi scott!
If you provide multiple YAML documents (as delimited by ---), your template will be rendered multiple times. Like a mail merge.
For example:
$ cat data.yml
---
name: chris
---
name: mark
---
name: scott
---
$ cat template.mustache
Hi {{name}}!
$ cat data.yml template.mustache | mustache
Hi chris!
Hi mark!
Hi scott!
OPTIONS
By default mustache will try to render a Mustache template using the YAML frontmatter you provide. It can do a few other things, however.
-c, --compile
Print the compiled Ruby version of a given template. This is the code that is actually used when rendering a template into a string.
Useful for debugging but only if you are familiar with Mustache's internals.
-t, --tokens
Print the tokenized form of a given Mustache template. This can be used to understand how Mustache parses a template. The tokens are
handed to a generator which compiles them into a Ruby string. Syntax errors and confused tags, therefor, can probably be identified
by examining the tokens produced.
INSTALLATION
If you have RubyGems installed:
gem install mustache
EXAMPLES
$ mustache data.yml template.mustache
$ cat data.yml | mustache - template.mustache
$ mustache -c template.mustache
$ cat <<data | ruby mustache - template.mustache
---
name: Bob
age: 30
---
data
COPYRIGHT
Mustache is Copyright (C) 2009 Chris Wanstrath
Original CTemplate by Google
SEE ALSO
mustache(5), mustache(7), gem(1), http://mustache.github.com/
DEFUNKT
May 2010 MUSTACHE(1)