This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

script ftp

Old posts that have not been replied to for several years.
J
Jailmann
Voice
Posts: 33
Joined: Fri Apr 09, 2004 2:50 pm

Post by Jailmann »

man wget ?

i am new to this do you mean like this

bind pub n !update {man wget -N http://your.homepage/filename.zip;#}

or ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Jailmann wrote:man wget ?
it's a Linux/UNIX command, short for "manual"; and wget is a non-interactive file retrieval utility for Linux/UNIX; so the `man wget' command, executed in your shell, will display on your terminal wget's manual pages

on a side note, it never ceases to amaze me how people without a slightest clue about Linux/UNIX commands and using these operating systems in general, manage to compile, run and support software like eggdrop... (no offense to you jailmann)
J
Jailmann
Voice
Posts: 33
Joined: Fri Apr 09, 2004 2:50 pm

Post by Jailmann »

Hello


that is right what you says many dont know much about what they are runnig

i no little off it compile an son make small tcl script

i have tried to read more about it at i cant find out off speciel because i am a dsnish guy an most off it is in english so it is damm hard to me

but i tried to learn but this i dont have any clude how to make or get it to work

Sorry if is affended you but we cant all be good this everything :)
User avatar
CrazyCat
Revered One
Posts: 1304
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

well, just *another* stupid idea:
why don't you use http.tcl and ftp.tcl ?
they are useful packages for eggdrops and the way to use them is really simple.

And more: you're never sure that wget (or lynx or any text-based browser) is on your shell.
J
Jailmann
Voice
Posts: 33
Joined: Fri Apr 09, 2004 2:50 pm

Post by Jailmann »

Hello


now i have found out of this but a little question

what is the cmd to overwrite the file if it allready exits on the folder

bind pub n !update {exec wget -N --directory-prefix=/patch-tofile/ http://domain/filename.zip;#}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

moving the received file to directory "files":

Code: Select all

bind pub n !update {exec wget -N http://www/file; mv file files;#}
Locked