<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Using [shell] to start a persistent program</title>
		<atom:link href="http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 16:07:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-53599</guid>
					<title><![CDATA[Using [shell] to start a persistent program]]></title>
					<link>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-53599</link>
					<pubDate>Sun, 28 Nov 2010 15:00:48 +0000</pubDate>
					<dc:creator>EasyMac</dc:creator>

					<description>
						<![CDATA[
						<p>I need to use Max to start up two unix-based programs upon loadbang.  Both of these are audio server type programs, and remain running for as long as you need the audio and OSC to stream, instead of being programs that just execute a few commands and then release you back to the prompt.</p>
<p>So I already need two shell objects, if each one is to &#8220;house&#8221; one of the two programs for the entire life of the patch.  This works fine for this purpose, but ideally, I would like the two programs to &#8220;outlive&#8221; the patch if something goes wrong and I have to close Max.  This is more a safety precaution than anything else.</p>
<p>As I understand it, if I close the patch or delete/reinstantiate a shell object, the running process in it dies.  Is this true?</p>
<p>If so, I suppose the best solution would be for me to use [shell] to boot up two Terminal windows (I&#8217;m on a Mac) and somehow send them each the instructions to start their respective program.  This way, the stability of the programs is in Terminal&#8217;s hands rather than the [shell] object within the patch.</p>
<p>Is this possible/reasonable?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192718</guid>
					<title><![CDATA[Re: Using [shell] to start a persistent program]]></title>
					<link>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192718</link>
					<pubDate>Sun, 28 Nov 2010 16:32:54 +0000</pubDate>
					<dc:creator>sandbags</dc:creator>

					<description>
						<![CDATA[
						<p>You could also look into the nohup command, e.g. &#8220;nohup <cmd>&#8220;. This will make the command immune to the signal that gets sent when the controlling terminal is closed.</cmd></p>
<p>The downside is that you&#8217;d then have to kill those processes manually although there are way to make that a little more graceful.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192719</guid>
					<title><![CDATA[Re: Using [shell] to start a persistent program]]></title>
					<link>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192719</link>
					<pubDate>Mon, 29 Nov 2010 23:05:47 +0000</pubDate>
					<dc:creator>mattyo</dc:creator>

					<description>
						<![CDATA[
						<p>You can also just use the launchbrowser message to max:</p>
<p>;<br />
max launchbrowser file://localhost/path/to/program</p>
<p>in a messagebox.  Terminal window does open, but there&#8217;s always apple-H.</p>
<p>M</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192720</guid>
					<title><![CDATA[Re: Using [shell] to start a persistent program]]></title>
					<link>http://cycling74.com/forums/topic/using-shell-to-start-a-persistent-program/#post-192720</link>
					<pubDate>Fri, 03 Dec 2010 05:36:52 +0000</pubDate>
					<dc:creator>EasyMac</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks, guys!</p>
<p>I didn&#8217;t know about either of these mechanisms and they both work great for my purposes.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

