I am trying to code the following to run a python script in c# :-
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName = @"C:\Program Files (x86)\PuTTY\plink.exe";
startinfo.Arguments = "-ssh username@lpl250srd01 -pw pass /home/abc/dComponents/bin/python eggs/beans/EGG-INFO/scripts/beanstalktop.py";
In the above there is a space between "python eggs"
which means i need to execute the .py
file but c# takes it as python directory and eggs as seperate directory and throws me an error.
Can any one help me in solving this??