I don't write a lot of shell scripts any more. For some reason, today I was inspired.
The inspiration is an evil little content traffic cop called WebSense. This big brother beast is willing to let me through, but only as long as I declare and authenticate myself on a frustratingly constant basis. In the past I've placed a graphical browser on a web page the auto refreshes, but that's not a realistic option for the console. The solution is to do a wget and pass the credentials, but this needs to be done repetitively.
The original script was kind of small, basically the 8 lines found somewhere in the middle of the final version. So, after descending into a full on coding geekout, we have a 90+ line script that can even clean up it's mess and limit itself to a single instance process.
I don't know if anyone else would find this useful or even interesting. By putting it here I'll be able to find it again if I need it, and someone else might get something out of it. I call it stayalive.
( Script: stayalive )
The inspiration is an evil little content traffic cop called WebSense. This big brother beast is willing to let me through, but only as long as I declare and authenticate myself on a frustratingly constant basis. In the past I've placed a graphical browser on a web page the auto refreshes, but that's not a realistic option for the console. The solution is to do a wget and pass the credentials, but this needs to be done repetitively.
The original script was kind of small, basically the 8 lines found somewhere in the middle of the final version. So, after descending into a full on coding geekout, we have a 90+ line script that can even clean up it's mess and limit itself to a single instance process.
I don't know if anyone else would find this useful or even interesting. By putting it here I'll be able to find it again if I need it, and someone else might get something out of it. I call it stayalive.
( Script: stayalive )
Tags: