Free Active Directory Authentication for UNIX, Linux & Mac

Standard

From:


Centrify Express is a comprehensive suite of free Active Directory-based integration solutions for authentication, single sign-on, remote access, file-sharing, monitoring and cloud security for cross-platform systems. It is the quickest and most proven solution for integrating UNIX, Linux and Mac systems with Windows, and delivers more functionality and more to upgrade to when compared to other free offerings.

406 total views, no views today

GRC Security Now Podcast Download Scripts

Standard

There seem to be two that would work for you.

See my own(Seth Leedy’s) script for downloading GRC Security Now Podcasts!


A Windows script, and a BASH script which could be run on both Windows or L/Unix.
wget for windows, here.
BASH for Windows, here.

Copied from the g.securitynow newsgroup hosted on news.grc.com on date 2012-05-12 07:51 AM.
First message. Subject: “Little SN download script”

As it states, he was publishing a script to download all Security Now episodes from the server.
This spawned a few messages of how to do it differently.
I am attempting to record all these different ways for future downloaders.
If you attempt this, set aside some space. As of 2012-05-16, approx: 11.8GB for HQ, 3.62GB for LQ.

James Womack:


Thomas:
Hi James,

I also make use of scripting to maintain my SN-archive. Attached you will find the ones I made. Their function is very simple and as a default (void of argument) will “guesstimate”, i.e. make use of previously downloaded stuff and then based upon that derive “next” episode for download.

Big note: As you, I wrote these in a bit of a haste a few years back and I had absolutely no intention of the code being scrutinized by this community or anyone else for that matter. If you find the code yucky, or beyond, most likely I am already agreeing. If you see solutions in the code that could have been written a lot more clever, again it comes as no surprise at all.

Disclaimer: These scripts are not guaranteed to be failsafe, foolproof or even to work…but to my experience they usually do, at least in line with my initial description. These scripts are definitely not compatible with the intentions of the RIAA, MPAA or any other racketeering organization affiliated with Sony and the other legitimate crooks of our time and society. Then again, anything able to download whatever or for that matter technology in general beyond the abacus is probably incompatible along those lines…
dl_sn_grc.sh:

dl_sn.sh:


Now gdb says to use this

and it spawned a large response thread.

Guy says:
Thanks for the information.
I use Windows – so curl is the tool for the task of topic.

Mark Cross adds:
Adding -N check timestamp and wont download existing files (if they haven’t changed) and -c to continue existing downloads:
echo wget -Nc http://media.grc.com/sn/sn-${padding:${#i}}$i.mp3

Update:
A real ‘one liner bash command’ needs some artistic tweaking (for bash 3.1):
a=’printf %03d’ eval “wget -Nc http://media.grc.com/sn/sn-{$($a 1)..$($a 25)}.mp3”

or (won’t mess with the environment vars set on present shell, for bash 3.1):
sh $(beg=1;end=25;a=’printf %03d’;eval “wget -Nc http://media.grc.com/sn/sn-{$($a $beg)..$($a $end)}.mp3”)

and (for bash 4):
sh $(beg=001;end=025;eval “wget -Nc http://media.grc.com/sn/sn-{$beg..$end}.mp3”)

maybe a bit too complex ;)


ObiWan says something interesting for Windows:


ObiWan also came up with this and I think, right now anyways, this would be the best way to do it for Windows users:

The below will fetch all the episode from 001 to 100 (for…) and save
then in c:\sn the episode number is correctly aligned with zeroes by
that “%NBR:~-3%”; basically the code first adds 000 in front of the
number and then picks the rightmost 3 chars


9,940 total views, 0 views today

What does “> /dev/null 2>&1″ mean? at Xaprb

Standard

From: What does “> /dev/null 2>&1″ mean? at Xaprb.

I remember being confused for a very long time about the trailing garbage in commands I saw in Unix systems, especially while watching compilers do their work. Nobody I asked could tell me what the funny greater-thans, ampersands and numbers after the commands meant, and search engines never turned up anything but examples of it being used without explanation. In this article I’ll explain those weird commands.

Here’s an example command:

Output redirection

The greater-thans (

) in commands like these redirect the program’s output somewhere. In this case, something is being redirected into

, and something is being redirected into

.

Standard in, out, and error

There are three standard sources of input and output for a program. Standard input usually comes from the keyboard if it’s an interactive program, or from another program if it’s processing the other program’s output. The program usually prints to standard output, and sometimes prints to standard error. These three file descriptors (you can think of them as “data pipes”) are often called STDIN, STDOUT, and STDERR.

Sometimes they’re not named, they’re numbered! The built-in numberings for them are 0, 1, and 2, in that order. By default, if you don’t name or number one explicitly, you’re talking about STDOUT.

Given that context, you can see the command above is redirecting standard output into

, which is a place you can dump anything you don’t want (often called the bit-bucket), then redirecting standard error into standard output (you have to put an

in front of the destination when you do this).

The short explanation, therefore, is “all output from this command should be shoved into a black hole.” That’s one good way to make a program be really quiet!

303 total views, no views today