Here i'll post info about my Amiga, Wii, and other programming projects. Sometimes i'll post random other things.
Easily upload files via FTP from scripts etc.
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().
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().
Total Comments 5
Comments
-
Posted 09-17-2009 at 06:01 PM by Karlos
-
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
Updated 09-18-2009 at 01:37 AM by xeron -
Posted 09-19-2009 at 05:30 PM by Karlos
-
Posted 09-22-2009 at 07:45 AM by Golem!dk
-
Posted 10-25-2012 at 02:21 PM by Elwood







