tultalk has asked for the wisdom of the Perl Monks concerning the following question:
Also works fine called from website page. I want to call the scripts via FTP from a different program. Five variations of the subs called with this cgi updatetable_443, _444, _445, _446 and _447 First three call subs that delete all data from MySQL Tables and replace with uploaded txt file data. Other two download a dynamically created HTML table. All this works fine when called from website page and links I put in email to test. Question: Can you call(execute) a cgi-script with an FTP command of some sort. I have looked at many. None seem appropriate. I tried ftp.literal with different commands. No luck Alternatives appreciated. For the latter two I don't want to open a default browser loaded with the URL. I want to try all using FTP .htaccess AddHandler cgi-script .cgi .pl Options +ExecCGI Secondary question ( not remotely perl related), the ftp.put result for the (16k and 300k)txt files appear truncated on the server at 1440 and 2880 bytes. Sources are fine. ft = binary. Any hints there?https://www.dumpledorf.us/httpsdocs/cgi-bin/update_tables.cgi?action +=updatetable_433
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Call CGI Scr.ipt via FTP
by dsheroh (Monsignor) on Aug 19, 2018 at 09:36 UTC | |
by afoken (Chancellor) on Aug 19, 2018 at 12:19 UTC | |
|
Re: Call CGI Scr.ipt via FTP
by Anonymous Monk on Aug 19, 2018 at 07:04 UTC | |
|
Re: Call CGI Scr.ipt via FTP
by tultalk (Monk) on Aug 18, 2018 at 21:36 UTC | |
by kcott (Archbishop) on Aug 19, 2018 at 11:56 UTC |