jammaster82

Can anyone from the

linux

  crew
suggest a good way to maybe
ftp batch my local directory to
the webserver...

perl

  script? 
Kylix app?  Kermit?  I see there
are many answers on google just wanted a
human opinion....

vsloathe

Well I'd use

PHP

  but that's just because I'm terribly unqualified to do any of the above mentioned. There are probably better options.

jammaster82

after downloading a couple of non working
site editors , SCREEM, to be the suckiest,
i glanced across gftp and i
can bookmark the site , the directory
and upload and overwrite entire
folder after every edit with an alt-tab
and a single click, alt-tab again and the
browser page swings into view where i hit
refresh....

php

  editing staion solved...

simple ,sweet and phreE!

perkiset

I tar.gz it all first, since it maintains permissions and the upload is a lot quicker. But

PHP

  is a great way to go, people miss this all the time - if you simply:

#!/usr/local/bin/

php

 
<?

php

 

// some stuff

?>

then chmod to 755 you can execute a

php

  file like any other batch script... so I've abandoned shell scripting almost entirely and gone with

PHP

  - IME it's way better and damn easy. Since I don't have a worry about RAM (which would be the primary reason for shells rather than another

PHP

  instance) it's a superior solution to my thinking. So if you wrote a little script that tar.gz'd everything in the current directory to, say, one directory up (towards the root) with a name specified on the command line you'd have a great solution. Then put the script in /usr/bin or something so that it's available from wherever you are. Then it'd be like this:

> dirupload.

php

  targethost

... where dirupload.

php

  is the script that does the compression and FTPing, and targethost is a filename that contains the ftp host, username, password etc of where you want it all to go.

Just thinkin...

jammaster82

sweet. i love it.

and i was running into the permissions
issue too...  Applause


Perkiset's Place Home   Politics @ Perkiset's