Niels Horn's Blog

Random thoughts, tips & tricks about Slackware-Linux, Lego and Star Wars

Archive for the ‘shell scripting’ Category

Using a Nokia CS-10 GSM modem on Slackware

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 [...]

[Continue →]

 

Flexible scheduling

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 [...]

[Continue →]

 

Firewall – Blocking a specific IP

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 [...]

[Continue →]

 

Pop-up Dialog in Shell scripts

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 [...]

[Continue →]