For Linux - I am looking for a decent reference - on-line or dead-tree - on scripting. My immediate desire is to have a script that can be run periodically to connect to an FTP site, log on, pull a specified file, disconnect, and place the file in a drive that is shared from a Windows machine, however I would like to learn the basics so I can go on from there. Is this something that can be done with shell scripts or do I need to go a bit further and use something else? If something else, then what?
For web, my immediate need is to modify a website so it can detect whether or not it is coming from a specific IP range and modify the content based on that. I am setting up some internal-only web sites, and want them to appear on the menu of the main station website when you go tot he main website from a machine inside the station. The site is hosted externally (Go Daddy, to be exact). The internal site is on an Apache server on a Linux box (the same box I want to be able to run the aforementioned script on). Any ideas how to go about doing this and maintaining cross-browser compatability? I should note that the connections to the main site will be coming through a proxy and NAT box, I am not certain how the originating address will appear, but a simple controlled log test will tell me that (I.E. connect to the site internally, then look at the logs to see where the server thinks the connection came from).
Any suggestions on where to look for these things would be helpful. I would Google, but I can't think of the correct terms to use. I come up with a lot of hits that seem to have no relation whatsoever to what I want. |