<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Save the output of a command in a logfile</title> <atom:link href="http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: vadiraj</title><link>http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html#comment-173088</link> <dc:creator>vadiraj</dc:creator> <pubDate>Sat, 06 Aug 2011 06:36:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html#comment-173088</guid> <description>Hi,
I want to copy output of linux command.
For eg.
$pwd
/user/Work/Personal
In above eg. pwd shows the current work directory. When I paste, the output should be &quot;/user/Work/Personal&quot;
Can u pls help.</description> <content:encoded><![CDATA[<p>Hi,<br
/> I want to copy output of linux command.</p><p>For eg.<br
/> $pwd<br
/> /user/Work/Personal<br
/> In above eg. pwd shows the current work directory. When I paste, the output should be &#8220;/user/Work/Personal&#8221;</p><p>Can u pls help.</p> ]]></content:encoded> </item> <item><title>By: Angel</title><link>http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html#comment-154890</link> <dc:creator>Angel</dc:creator> <pubDate>Fri, 09 Apr 2010 02:12:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-save-linux-unix-command-output-to-file.html#comment-154890</guid> <description>But is it possible to execute the same thing using c code, but by calling functions? I need to know how to do the following in c code:
command &gt; textfile
how to execute the &quot;&gt;&quot; in c code? In other words how to I pipe the output in the terminal to a text file in c code? Are there any functions available?
The temporary solution I have is to make a system call to execute the above command within my c code.
system(command);
Is there any other way?</description> <content:encoded><![CDATA[<p>But is it possible to execute the same thing using c code, but by calling functions? I need to know how to do the following in c code:</p><p>command &gt; textfile</p><p>how to execute the &#8220;&gt;&#8221; in c code? In other words how to I pipe the output in the terminal to a text file in c code? Are there any functions available?</p><p>The temporary solution I have is to make a system call to execute the above command within my c code.</p><p>system(command);<br
/> Is there any other way?</p> ]]></content:encoded> </item> </channel> </rss>
