c# - Trigger Apache Nutch Crawl Programatically -


i'm trying create asp.net web api trigger crawl event happen. can't seem cygwin process of commands give it. thing can open terminal. once terminal open i'd have redirect pwd location , trigger command want.

process p = new process(); processstartinfo info = new processstartinfo(); info.createnowindow = false; info.redirectstandardinput = true; info.useshellexecute = false; info.filename = "c:\\cygwin64\\bin\\mintty.exe";  p.startinfo = info; p.start(); streamwriter sw = p.standardinput; if (sw.basestream.canwrite) {     sw.writeline(@"cd c:\users\uname\desktop\apache-nutch-2.3-mongodb\runtime\local\");     sw.writeline("bin/autocrawl"); } sw.close(); p.waitforexit(); 

i've tried many approaches, last 1 i've tried nothing. there way launch crawl .net application? i've looked nutchapi creating new job type of crawl i'm not sure if applies here or not.

i ended figuring out how use nutchapi answer question.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -