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.
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_execfunction:
https://www.php.net/manual/en/function.ssh2-exec.php - Or phpseclib:
https://phpseclib.com/docs/ssh2/commands