amiga.org
     
iconAll times are GMT -6. The time now is 02:41 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Blogs » Amiga, Wii, random other stuff. » Easily upload files via FTP from scripts etc.

Here i'll post info about my Amiga, Wii, and other programming projects. Sometimes i'll post random other things.
Rate this Entry

Easily upload files via FTP from scripts etc.

Submit "Easily upload files via FTP from scripts etc." to Digg Submit "Easily upload files via FTP from scripts etc." to del.icio.us Submit "Easily upload files via FTP from scripts etc." to StumbleUpon Submit "Easily upload files via FTP from scripts etc." to Google
Posted 09-17-2009 at 11:20 AM by xeron
Updated 09-17-2009 at 11:23 AM by xeron (Better title)

Just a quick note to let you know that this perl script:

http://unixwiz.net/tools/ftpput.html

works perfectly out of the box on OS4.1 if you have the SDK installed (the SDK comes with Perl). Simply download it somewhere as ftpput.pl, and do something like:

1.Workbench> perl ftpput.pl --server=ftp.example.com --verbose --user=username --pass=password --dir=/whatever file1 file2

Which could come in handy for DOS scripts etc. I've just used it from a C program via IDOS->SystemTags().
Posted in Uncategorized
Views 4670 Comments 5 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 5

Comments

  1. Old Comment
    Karlos's Avatar
    I must have missed something. What's wrong with just using the regular ftp command line tool?

    It worked for me, even without the SDK installed.
    Posted 09-17-2009 at 06:01 PM by Karlos Karlos is offline
  2. Old Comment
    xeron's Avatar
    You can't use it from scripts. Or, well, you could, but you'd have to pipe commands to/from it.

    A specific example: I was using magpierss to automatically syndicate this blog to my homepage. Its a pretty cool PHP script that does caching etc. to minimise traffic from the original host, but for some reason it stopped working for several days.

    I've just written a simple program for OS4 that downloads the rss feed with wget, generates a new index.php and uploads it to my server using this perl script.

    Its not quite as nifty as magpie, since the syncing of my website to this blog is now manual, but its just one click of an icon in AmiDock and its done with no user intervention.
    Posted 09-18-2009 at 01:33 AM by xeron xeron is offline
    Updated 09-18-2009 at 01:37 AM by xeron
  3. Old Comment
    Karlos's Avatar
    Speaking of pipes, isn't there a unix-alike pipes hack for amigados that allows bar separated commands? IIRC, it also creates IN: and OUT: (or something like that) as logical devices for redirection...
    Posted 09-19-2009 at 05:30 PM by Karlos Karlos is offline
  4. Old Comment
    Golem!dk's Avatar
    Always used ncftpput for such tasks here, as for pipes there are a few solutions on aminet (not hacks, think I used util/shell/Pipe-1.5 here).
    Posted 09-22-2009 at 07:45 AM by Golem!dk Golem!dk is offline
  5. Old Comment
    Elwood's Avatar
    Curl and Wget are available on OS4 ;-)
    Posted 10-25-2012 at 02:21 PM by Elwood Elwood is offline