lundi 9 mars 2015

Not able to execute Script(.sh) inside script(.sh) with rensi.sshnet library in C# web application

I have created a web application where I am executing a shell scrip "abc.sh" in a remote unix server. I am able to Execute that script. but from abc.sh I am calling another script xyz.sh, which is not called. I am using Rensi.sshnet library to execute shell scripts in a web application.


Folder structure for Script files - /home/scripts/


Note : They both reside in same folder.


abc.sh looks like this.


"echo test


echo "execute another shell script"


xyz.sh


echo "Executed""


Please provide me a solution or some work around to get the desired result.


Thanks in advance.





Aucun commentaire:

Enregistrer un commentaire