LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Pure Bash option handling

Posted 04-16-2012 at 01:44 AM by Nominal Animal

I like the standard getopt way of specifying script and/or program parameters, but I don't like its quirks, and it is pretty cryptic if you don't use it often enough.

Here is pure Bash skeleton to implement script option parsing. It is long, but it should be easier to read and understand than one implemented using getopt.
Code:
#!/bin/bash
set +f                  # Enable filename globbing
set -B                  # Enable brace expansion
shopt -s dotglob
...
Senior Member
Posted in Uncategorized
Views 1752 Comments 0 Nominal Animal is offline
Old

Security. Malware and vulnerabilities.

Posted 04-15-2012 at 09:27 PM by rich_c

I'd just like to contrast an example of a win and a fail in relation to dealing with security issues.

Win. A student found a vulnerability in Wicd that could result in unauthorised root access. That vulnerability was patched pretty much the same day most sites reported the problem.

Fail! On the other hand, we have the Flashback trojan which apple have only just released tools to fix. I found a report of it's existence going back to September last year...
...
Member
Posted in Uncategorized
Views 5104 Comments 1 rich_c is offline
Old

UsR2usr (libLQ version)

Posted 04-15-2012 at 04:42 PM by rainbowsally

Here's UsR2usr version 1.5 (using libLQ)

file: src/Usr2usr.cpp
purpose: allows dummy installations and renaming of paths and rpaths for creating binary installations without committing to overwriting original files until you're ready.
Code:
// UsR2usr.cpp

#include <stdio.h>        // printf, sprintf, etc.
#include <stdlib.h>       // exit()
#include <unistd.h>       // tons of stuff
#include <malloc.h>
...
Member
Posted in Uncategorized
Views 453 Comments 0 rainbowsally is offline
Old

Birthday email

Posted 04-15-2012 at 04:41 PM by fred roellig

I want the person or persons who decided to send birthday emails to members ontheir birthdays to stand in front of a mirror and repeat the following: "People don't choose linux because they want the usual microsoft stupidity. People choose linux to get away from that crap." Now, slap yourself in the head hard enough to leave a red mark. This increases the likelihood of you actually getting a fucking clue. You douchebags have all this crap about "don't waste our time with stupid questions"...
LQ Newbie
Posted in Uncategorized
Views 8170 Comments 2 fred roellig is offline
Old

Rethinking network configuration

Posted 04-15-2012 at 02:43 AM by Skaperen

Previously I wrote about configuring interfaces with static IPs based on matching them with what actual network (subnet) the interface is connected to. Now I'm thinking about it in even more different terms. But this concept will need some changes in the kernel itself.

To start with, the kernel already (by default) will "leak" an IP address to other interfaces. Specifically, if an ARP query comes in on one interface for an IP address only configured on another interface,...
Senior Member
Posted in Uncategorized
Views 398 Comments 0 Skaperen is offline

  



All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration