No such file or directory when using Execute custom remote command in Winscp.com
Hi all,
I am facing an issue when I try to run the Execute custom remote command. I am getting the error
-bash:line 16: ./!: No such file or diretory. But the file really exists in the specified path.
Basically I want to execute a .bat file that is available in the remote system through the custom remote command "Execute" ("./!"). I want to achieve this through scripting.
Please find below the code:
option batch abort
option confirm off
open sftp://xxx:yyy@zzz.zz.zzz.zz/ -hostkey="sdf"
call "./!" /root/upload/config/File1.bat
close
I will run the above code through winscp.com
Any help will be greatly appreciated.
I am facing an issue when I try to run the Execute custom remote command. I am getting the error
-bash:line 16: ./!: No such file or diretory. But the file really exists in the specified path.
Basically I want to execute a .bat file that is available in the remote system through the custom remote command "Execute" ("./!"). I want to achieve this through scripting.
Please find below the code:
option batch abort
option confirm off
open sftp://xxx:yyy@zzz.zz.zzz.zz/ -hostkey="sdf"
call "./!" /root/upload/config/File1.bat
close
I will run the above code through winscp.com
Any help will be greatly appreciated.