I have done the following steps successfully:
- I have created an WinSCP [Process] in C# .NET
- Created a Session of a user on LINUX-server [Using SFTP Protocol]
- Downloaded the files using
GetFiles(........);
The thing I want to add to my App is that:
- Give that process a command to run a shell-script [already uploaded on the server]
- I tried this
session.ExecuteCommand("sh /fol1/fol1_1/abc.sh");
but giving no results/impacts
Processandwinscp.StandardInput. That does not go well with WinSCP .NET assembly. It would really help, if you post your code.sh /fol1/fol1_1/abc.sh) from the root folder?session.ExecuteCommand("cd /fol1/fol1_1; sh abc.sh");