Re: How to run a python file with Winscp?
You would have to use
https://winscp.net/eng/docs/scriptcommand_call
Though note that using WinSCP for this task is a huge overkill.
Use PHP
https://www.php.net/manual/en/function.ssh2-exec.php
Or phpseclib:
https://phpseclib.com/docs/commands
call
command:
call python 'update_main.py'
https://winscp.net/eng/docs/scriptcommand_call
Though note that using WinSCP for this task is a huge overkill.
Use PHP
ssh2_exec
function:
https://www.php.net/manual/en/function.ssh2-exec.php
Or phpseclib:
https://phpseclib.com/docs/commands