The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Looking for Guidance - Linux & Web (not related) by radiowave911 2008-08-27 19:10:47
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.
[ Reply ]
  wget might help with the first one (n/t) by toysbfun2008-08-27 19:17:48
    Can that pull from an FTP site requiring a by radiowave9112008-08-27 19:37:58
      it should by Freakazoid2008-08-27 19:53:14
        oops... read the thread first dummy by Freakazoid2008-08-27 19:54:17
          Would "wget -r" work? (n/t) by toysbfun2008-08-27 19:59:48
            methinks I will have to read up on wget. (n/t) by radiowave9112008-08-27 20:18:22
  The basic and advanced Bash guides... by Sharku2008-08-27 19:38:28
    Sounds simple enough :) by radiowave9112008-08-27 19:43:03
      BTW - io took a quick glance through that site by radiowave9112008-08-27 19:43:59
    Seconded. by swisscheese2008-08-27 22:42:40
  For the first one, I suggest using cron. by fudje2008-08-27 19:56:50

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)