Niels Horn's Blog
Random thoughts, tips & tricks about Slackware-Linux, Lego and Star WarsArchive for the 'shell scripting' Category
Using a Nokia CS-10 GSM modem on Slackware
February 23rd, 2010 by Niels Horn in configuration, shell scripting, udev
Today I received my new GSM Modem, a Nokia Internet Stick CS-10. It had the size of an overweight pen-drive and can connect (depending on your service-provider) at speeds up to 7.2Mbps (my contract only goes to 2Mbps).
Here is a picture of the modem, taken from the Nokia site:
As was to be expected, it comes [...]
Flexible scheduling
July 23rd, 2009 by Niels Horn in Linux, Maintenance, Slackware, shell scripting
As explained in my previous post, I needed a flexible way to schedule a small script to run, with variable parameters.
The basic requirements were:
simple to configure (no messing in crontabs)
flexible enough to have different schedules on different weekdays (on Sundays a job should be started at another time than on Mondays, for example)
should offer the [...]
Firewall - Blocking a specific IP
July 23rd, 2009 by Niels Horn in Firewall, Linux, Slackware, shell scripting | No Comments »
This week I needed a solution to block and unblock certain IPs from accessing the internet at certain times.I didn't want to change my firewall script too much and didn't want to change it every time the rules changed (which change a lot due to variable circumstances).
So I created a two-part solution. In this post [...]
Pop-up Dialog in Shell scripts
September 29th, 2008 by Niels Horn in Linux, cli, shell scripting | No Comments »
As I am an old-time computer user, I still prefer doing almost everything from the command line (CLI). I program almost everything in bash-scripts and schedule them with cron.But of course I do use a graphical interface to read mail (although I have Alpine configured to read my mail from the CLI) and browse the [...]