I have a set of bash scripts I want to install to a remote linux system. I have created a batch file to be run on the windows host system using plink and putty to transfer the files to the linux system. But Plink is not able to run the install script, which actually schedules the scripts in to crontab it gives "Permission denied error" as chmod command is not run. Is there any work around this? The command used to send files to the linux box
"c:\Program Files (x86)\PuTTY\pscp" -pw passwd *.sh email@example.com:/mnt/capture/logs/
The command used to run the script
"c:\Program Files (x86)\PuTTY\plink.exe" -ssh -pw passwd -noagent firstname.lastname@example.org /mnt/capture/logs/script.sh
The script.sh file is as follows
#!/bin/bash sudo /mnt/md0/capture/logs/install.sh
The plink command gives script.sh : Permission denied.