Hi Vero;<div id="yMail_cursorElementTracker_1539323817098">I will try that as well. I just need an indication that grass is running before I execute my script. I think that this may work if I put it at the very beginning.<br id="yMail_cursorElementTracker_1539323798714"><br><div id="ymail_android_signature"><a href="https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature">Sent from Yahoo Mail on Android</a></div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Thu, Oct 11, 2018 at 5:23 PM, Veronica Andreo</div><div><veroandreo@gmail.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="yiv6761808042"><div><div dir="ltr"><div dir="ltr"><div>Hi Felipe</div><div><br clear="none"></div><div>what about gmeta()? If grass is running, it gives you location and region metadata, otherwise it rises an error... <br clear="none"></div><div><br clear="none"></div><div>Or you could also ask in the grass-stats list: <a rel="nofollow" shape="rect" target="_blank" href="https://lists.osgeo.org/mailman/listinfo/grass-stats">https://lists.osgeo.org/mailman/listinfo/grass-stats</a><br clear="none"></div><div><br clear="none"></div><div>HTH, <br clear="none"></div><div>Vero<br clear="none"></div></div></div><br clear="none"><div class="yiv6761808042gmail_quote"><div dir="ltr">El mié., 10 oct. 2018 a las 17:09, Felipe Carrillo (<<a rel="nofollow" shape="rect" ymailto="mailto:mazatlanmexico@yahoo.com" target="_blank" href="mailto:mazatlanmexico@yahoo.com">mazatlanmexico@yahoo.com</a>>) escribió:<br clear="none"></div><blockquote class="yiv6761808042gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6761808042yqt1228915862 yQTDBase" id="yiv6761808042yqt36573"><div><div class="yiv6761808042m_3113871873597778483ydp66547bc8yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><span></span><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;color:rgb(0,0,0);">Hi;</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;color:rgb(0,0,0);">I usually start GRASS from my RConsole as so:</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;color:rgb(0,0,0);"><br clear="none"></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;color:rgb(0,0,0);"><div>#perform initial GRASS setup</div><div>initGRASS("C:\\OSGeo4W64\\apps\\grass\\grass-7.4.1", home = getwd(), gisDbase = "GRASS_TEMP", mapset = "PERMANENT", override = TRUE)</div><div><br clear="none"></div><div>and I never had problems until last week. I was getting errors and couldn't figure out why. Later on I came to find out that my GRASS instance was closed.</div><div>I don't know why GRASS unexpectedly close without notification. With that said, is there a way in R to check if GRASS is still running in the background?</div><div>I can probably manually check my task manager to see if there is a process running but in a more elegant way I want to do it from R. </div></div><br clear="none"></div><div><br clear="none"></div><div class="yiv6761808042m_3113871873597778483ydp66547bc8signature"><div>Felipe D. Carrillo</div><div>Supervisory Fishery Biologist</div><div>Department of the Interior</div><div>US Fish & Wildlife Service</div><div>California, USA</div><div><a rel="nofollow" shape="rect" target="_blank" href="http://www.fws.gov/redbluff/rbdd_jsmp.html">http://www.fws.gov/redbluff/rbdd_jsmp.html</a><br clear="none"></div></div></div></div></div></div>_______________________________________________<br clear="none">
grass-user mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:grass-user@lists.osgeo.org" target="_blank" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div></div></div> </div> </blockquote></div>