scripts/programs/code posted to www.unix.com


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions scripts/programs/code posted to www.unix.com
# 1  
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. 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

2. 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

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

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

5. 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
Login or Register to Ask a Question