There is an alternative to using bash, and that is zsh. If you want to defer running a command to the next line, you can invoke the push-line widget, bound by default (in the emacs keymap) to Ctrl-Q and ESC-q.
Posted Sat 22 May 2010 06:19:59 PM EDTWhen being told about the differences between Puppet and Chef by Puppet fans, a few common talking points emerged. They included the terms “DSL”, “declarative”, and “shell script”.
“Shell script” was probably the most entertaining meme, and referred to how, without dependencies, Chef was just like writing shell scripts in Ruby.
In actuality, a Chef cookbook appears to be roughly 17 files in 7 different directories. Most of them end in .rb, but there is also a metadata.json to keep the metadata.rb company, and perhaps an .rdoc if you like that sort of thing. I have no idea who writes shell scripts this way. I am also stupefied that people say this is easier than Puppet, because I doubt I would want to perform “system administration” by writing one of these things.
So when I started writing my own thing, I contemplated the dependency issue, and for a few minutes decided to be lazy and leave them out entirely. Once it dawned on me, however, that I was then writing shell scripts in Lua, I became ashamed.
If I were going to go that route, why not just set up a git repository with a bunch of shell scripts, and set up cronjobs on each of the clients to do a git pull and run these shell scripts as root? After all, nothing beats shell scripting for shell scripting, not Perl, not Python, not Ruby, and least of all Lua.
So I wrote a dependency resolver. It was easier than I had anticipated and I have vague plans to make it smarter than Puppet's. Then I'm justified in sticking to my Lua “DSL”.
Now Steve has a list of requirements that seem to be relatively mild. I think he could easily get away with a VCS-shellscript-cron setup. The VCS pull can be tunneled over ssh or stunnel or anything else which will provide authentication and encryption, so there is no need for a fancy custom server with its own certificate authority. In short, all the tools are there and you just need glue.
I will continue to pretend that I'll need more complex logic and power that only Lua can give me, so I'll end up doing VCS-Lua-cron until I change my mind.
Posted Thu 24 Dec 2009 11:08:51 PM ESTWe need to get Jaldhar a video-editing station and some free phase vocoder software.
Posted Fri 18 Sep 2009 10:09:21 AM EDTTotus illae has venio pro , quod is mos totus venio iterum
Answer:
All they /hɑs/ I come for , because he custom all I come again
Posted Fri 13 Mar 2009 10:00:00 PM EDTThe funniest thing I've heard about The Economist is that it “is full of neo-liberal absurdity and supported criminals like Reagan and Thatcher.”
Posted Sun 25 Jan 2009 08:56:57 AM ESTdo we trust our release team ;
- No.
shall we delay the Lenny release for firmware issues or not (We answered that twice in the past with huge majorities btw) ;
- Possibly.
shall we modify the meaning the the SC/DFSG.
- Only to remove SC#5 or remove the DFSG#4 compromise.
How should I vote?
Posted Sun 14 Dec 2008 12:25:50 PM ESTYou can do the similar things with better-licensed software:
gnutls-cli --insecure -p 443 samba.grep.be
and
gnutls-cli --insecure --starttls -p 587 samba.grep.be
Posted Sun 21 Sep 2008 11:21:51 AM EDT
Francois-Denis,
you can get more bash-like behavior by doing setopt nohup, or you can
disown the jobs before exiting, or you can background and disown
immediately by running program &|.
Also, that silly non-free window manager, ion3, is decent with the small popups.
Posted Wed 11 Jun 2008 03:51:11 PM EDTThijs, in the U.S. we call it arugula and have bred all the flavor out of it so it can be just as non-threatening as Iceberg lettuce. Americans who go to the UK will be hesitant to pay £12 for a rocket sandwich, as without being able to see a TSA seal of approval, they will fear the Washington school bus's re-entry shield.
Posted Wed 07 May 2008 12:06:23 PM EDT