Free scripts.
last modified: 2008-10-03 10:25:22
permalink to this page
Handy small scripts that work at home. I lost too many of those, maybe you did too. Free for anything.
I will try to add some when I'll stumble upon them, from now on.
- When you grep a big file -say 120 MB- you need the progress bar, don't you ? This is an attempt at grepping a pattern in an HD dump and telling how far we are. I got the time to learn about the Python2.5 nested with statement and poorly about ncurses during the greps, but my HD is really dead.
locate_string.py will only report the matching offsets.
- netlogon.py is a drop-in replacement for the samba-supplied netlogon.sh.
- It logs the activity into a file.
- It handles common .BAT, .BAT per machine, .BAT per user and combines them all into one for the logging user.
- The scripts do not need any escaping ; they are used whenever they exist, but are only required in the cases when they are needed.
- You need to change the variables at the start.
- All your scripts should be named accordingly to these variables, this is :
- __all__/script.bat
- machines/machine_name/script.bat
- users/user_name/script.bat