Archive for 'Scripting' Category
Remembering Regex Patterns
27 September 2007It’s often useful to remember patterns that have been matched so that they can be used again. It just so happens that anything matched in parentheses gets remembered in the variables $1,…,$9. These strings can also be used in the same regular expression (or substitution) by using the special RE codes \1,…,\9. For example
$_ = […]
How to create a Wait statement in batch files
1 September 2007To make a batch file wait for a number of seconds, do this:For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a number of seconds.
If specified with a -w switch, PING will wait for a number of milliseconds before timing out. The -n switch causes ping […]
User Account Control Values
28 April 2007UserAccountControl Values
You may be wondering what range of settings you can use on the UserAccountControl attribute. Here is a list of the most common values for a user object.
512 - Enable Account
514 - Disable account
544 - Account Enabled - Require user to change password at first logon
66048 - Password never expires
262656 - Smart Card […]
Installing Perl Modules on Unix
17 March 2007perlmodinstall2 - Installing Perl Modules
perl Makefile.PL, make, make test, make install
The standard way to install a Perl module on Unix is to change into the directory that was created when you unpacked the .tar.gz file, and then type the following sequence of commands:
perl Makefile.PL
make
make test
make install
Retrieve Warranty Information For Hp And Compaq Machines
7 January 2007Retrieve Warranty Information For Hp And Compaq Machines
Description:
Author: Carlos
Description:
Retrieves warranty information for HP/COMPAQ machines
Script:‘====================
‘ WarrantyCheck
‘
‘ WRITTEN BY: crodrig186@hotmail.com
‘
‘ PURPOSE: This script can retrieve information from a HP/COMPAQ
‘ […]
Perl Debug
11 September 2006Perl Debug
The debug command
perl -d myprogram
Essentially the -d switch allows you to communicate with the perl executable, and allows the perl executable to communicate with you.
Stepping up to the plate
l - lists the next few lines
p [variable name] - lets you print the value of a variable to the command line
q - I quit.
r - […]
Bashrat DriverPacks and the Unattended Installer
9 September 2006Bashrat DriverPacks and the Unattended Installer | cfreeze.com
Lets start with some groundwork by defining what I would expect your unattended installer setup to look like. I have my unattended installer setup hanging off of my fileserver at
//ntinstall/unattended
This share is readonly and can be accessed by the user guest. I have an administrative version that has […]
Common Regex’s
8 September 2006Sample Regular Expressions
Reference link here
Below, you will find many example patterns that you can use for and adapt to your own purposes. Key techniques used in crafting each regex are explained, with links to the corresponding pages in the tutorial where these concepts and techniques are explained in great detail.
If you are new to regular […]