<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000243.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T21:38:23</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61406" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61405" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#59718" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53602" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53600" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#52451" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#40116" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61406">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61406</link>
		<description>In my previous comment about cfexecute, I neglected to say /bin/diff and /&lt;br /&gt;bin/grep in the example. Please edit in /bin/ before the diff and 3 greps, but &lt;br /&gt;not the cds. Thanks.</description>
		<dc:creator>Steve Seaquist</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-02-03T11:02:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61405">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#61405</link>
		<description>Read this and regain the full power of the Unix command line! &lt;br /&gt;&lt;br /&gt;I read complaints about stuff you can't do, like stderr redirection, etc. Did &lt;br /&gt;you forget about cfexecuting the shell itself? I don't know about all shells, &lt;br /&gt;because I only have man pages for bash and tcsh as I type this, but bash &lt;br /&gt;and tcsh both take a -c &quot;command line&quot; argument. Within those quotes, &lt;br /&gt;you can do pipes and tees and redirections and greps and whatever &lt;br /&gt;else you like, including multiple commands using semicolons. Use bash &lt;br /&gt;if you want to redirect stderr, because tcsh doesn't have a syntax for that. &lt;br /&gt;Also within those quotes, if a command isn't a built-in shell command, &lt;br /&gt;such as cd, I give its full path name. Not sure if I have to, but I do. &lt;br /&gt;&lt;br /&gt;Under Solaris at work, I like to compare directories by passing -c &quot;cd /opt/&lt;br /&gt;iplanet/servers/docs ; diff dirname1 dirname2 | grep diff | grep -vi datediff &lt;br /&gt;| grep -vi differen ; cd -&quot;. That gives me a concise list of all files that are &lt;br /&gt;different in &quot;diff dirname1/filename dirname2/filename&quot; format. I retrieve &lt;br /&gt;that into a ColdFusion variable and parse it out. Because what I'm &lt;br /&gt;comparing are cfm files, note that I exclude datediff from the list, in case it &lt;br /&gt;appears in the differences listing under the diff. Same for differences and &lt;br /&gt;different in comments and background text. Your excludable garbage &lt;br /&gt;may vary. &lt;br /&gt;&lt;br /&gt;Now go forth and wow your users with all the cool stuff you can do in &lt;br /&gt;Unix!</description>
		<dc:creator>Steve Seaquist</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-02-03T10:55:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#59718">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#59718</link>
		<description>Folks, the table listing the discussion of the TimeOut attribute needs to be updated as others above it were, to add reference to the new Variable attribute. Where it says:&lt;br /&gt;&lt;br /&gt;&quot;If the outputFile attribute is not specified, any program output is discarded &quot;&lt;br /&gt;&lt;br /&gt;it should say:&lt;br /&gt;&lt;br /&gt;&quot;If the outputFile or Variable attribute is not specified, any program output is discarded &quot;</description>
		<dc:creator>carehart</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-01-17T10:16:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53602">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53602</link>
		<description>I should add that if you try to run a shell to call your other external program, and the input you're trying to redirect is in any way based on user input, it's a pretty ridiculous security risk and you shouldn't do it.   There are a lot of ways to escape and unescape characters that have special meaning to the shell and could end up causing all sorts of problems.</description>
		<dc:creator>bizarrojack</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-09-28T23:59:00</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53600">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#53600</link>
		<description>Conspicuously absent is a way to send any data to the program on its standard input.  (Less useful, but also absent, there is no way to distinguish between standard output and standard error).  If there is any more complex instructions for your program than what can come in as a &quot;command line&quot; style argument, you'll have to do something complicated like put the program input into a file (if your external app supports that), and specify that (temp) file's name in the arguments.  Don't forget to clean up the temp file and make sure that it doesn't make a mess if the template is running more than once concurrently.  Catch exceptions so your delete operation on the temp file doesn't have any chance of escaping.&lt;br /&gt;&lt;br /&gt;A better alternative, when you're dependent on one external program that would benefit from use of standard input, may be to write a wrapper program in perl or python, or just avoid coldfusion entirely.&lt;br /&gt;&lt;br /&gt;Depending on your OS and the available shells, there is probably some tricky way of calling your program via a shell and redirecting arguments into stdin, if you can handle all the escaped quotation marks.</description>
		<dc:creator>bizarrojack</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-09-28T23:41:30</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#52451">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#52451</link>
		<description>Read this and save yourself more hours.&lt;br /&gt;&lt;br /&gt;Windows NT Error 21 means File Not Found.</description>
		<dc:creator>the_falling_frog</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-08-31T13:13:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#40116">
		<title>coldfusion/7/htmldocs/00000243.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000243.htm#40116</link>
		<description>Read this and save yourself hours.&lt;br /&gt;&lt;br /&gt;If you don't specify a TIMEOUT, the execution is asynchronous. A new thread is spawned to do the work, and there is no output written to the screen nor the variable when outputfile are not provided.&lt;br /&gt;&lt;br /&gt;So, if you want output on the screen or variable make sure you provide the TIMEOUT attribute.</description>
		<dc:creator>cf_Amir</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-28T10:21:35</dc:date>
	</item>
	</rdf:RDF>

