I have a log file i.e. a CSV file present in SFTP server. Now I want to connect to SFTP server using private key then insert a row at end without replacing the file as the same file might be used by other applications.
For example if the CSV should be have 3 rows then 4th row can be written , but there could be a situation like another system will also try to insert another log .
Need batch script .