Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions scripts/programs/code posted to www.unix.com Post 60152 by Perderabo on Tuesday 11th of January 2005 01:04:44 PM
Old 01-11-2005
scripts/programs/code posted to www.unix.com

Every now and then our users post complete programs to this site. It is especially important that these contributions don't get lost, so I will collect them here. Some of these programs are intended to demonstrate a programming technique and some are ready to run. As a guideline, the code linked in this thread should be general enough to be useful to a large number of users.

ksh Scripts

scroller a scrolling tool a bit like more
datecalc date calculation tool for use by other scripts
display file mode turns symbolic permissions from ls back to octal
HardFeed recursive ftp
changepass automate password changes on multiple systems
weekselector extend the capabilities of a crontab
swordfish a password generator
mimetool mail with attachment
mimesender mail with several attachments
packed decimal convert integer to packed decimal

perl Scripts

keep_alive monitor a program and restart it if it dies
mail_attachment mail with attachments
filesystem_check send email if free space is low
verify_password how to verify a password
adduser add a user


C Programs

nodoff sleep for less than a second
gethostbyname example how to use gethostbyname
termio vs termios how to read one character
microseconds how to get system time in microseconds
intentional bus error understanding what causes a bus error

Last edited by Perderabo; 04-05-2005 at 08:28 PM..
 

5 More Discussions You Might Find Interesting

1. OS X (Apple)

Right-Click scripts and programs in finder

How can I add a right-click option where I can add my own programs and script to finder? (4 Replies)
Discussion started by: codecaine
4 Replies

2. Shell Programming and Scripting

File maintenance programs/scripts ala logrotate

Hi all, Before I start writing my own file maintenance script, maybe one such program/scripts already exist somewhere :-) Am looking for a file maintenance script/application that is configurable that I can use to process files under certain criteria, for example, removing files that are... (4 Replies)
Discussion started by: newbie_01
4 Replies

3. UNIX for Advanced & Expert Users

What files or programs have the ability to change your default network scripts and config

What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own. /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/devices/ifcfg-wlan0... (4 Replies)
Discussion started by: cokedude
4 Replies

4. Shell Programming and Scripting

WWW:::Mechanize - Anyone have sample scripts?

Hello, I am trying to get to learn WWW::Mechanize & have found alot of sample scripts (that dont work) so am wondering if anyone has any that do, I basically just learn from stripping current bits out seeing how they work etc.. etc.. - if anyone can point me to somewhere that has a few good... (0 Replies)
Discussion started by: t0mb
0 Replies

5. Shell Programming and Scripting

Automatically determining directory path for scripts and programs

I have some C++ code in the following directory structure /home/chrisd/tatsh/trunk/hstmy/ ├── baseLib ├── bin │ ├── awk │ ├── bash │ ├── diag │ ├── ksh │ │ └── TAG201011 │ ├── old │ ├── perl │ ├── prog │ ├── py │ └── tcsh ├── docs ├── fortran ├── others... (0 Replies)
Discussion started by: kristinu
0 Replies
POLYGRAPH-CMP-LX(1)						   User Commands					       POLYGRAPH-CMP-LX(1)

NAME
polygraph-cmp-lx - log comparison tool SYNOPSIS
cmp-lx.pl [--precision=percent] [--scope=important|all] <f1.lx> <f2.lx> DESCRIPTION
Cmp-lx compares results from two tests and prints stats that differ significantly. With important scope some stats are ignored. The follow- ing events are not important: *.last *.min and *.max except for *.hist.min and *.hist.max *.mean if there is corresponding *.hist.mean rare events Histogram and errors are important. Rare events are events that happened in less than 0.1% of the cases where they could have occurred. Measurements related to such events are not important. Event rate is calculated using xact.started measurement as total count. List of events: basic offered hit miss cachable uncachable fill ims reload range head post put abort page ssl ftp 100_continue proxy_validations auth tunneled proxy_validation rep req OPTIONS
--precision=percent difference threshold in percent, default: 10 --scope=important|all which stats to compare, default: important COPYRIGHT
Copyright (C) 2003-2006 The Measurement Factory, Inc. SEE ALSO
polygraph(7) - general information and a list of programs http://www.web-polygraph.org/ - project web site polygraph-cmp-lx - Web Polygraph February 2010 POLYGRAPH-CMP-LX(1)
All times are GMT -4. The time now is 08:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy