<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[Linux Forums - Linux Programming & Scripting]]></title>
		<link>http://www.linuxforums.org/forum/</link>
		<description>C, Perl, PHP, Bash Scripts, anything programming or script related post in here!</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 00:29:42 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.linuxforums.org/forum/linux2/misc/rss.jpg</url>
			<title><![CDATA[Linux Forums - Linux Programming & Scripting]]></title>
			<link>http://www.linuxforums.org/forum/</link>
		</image>
		<item>
			<title>writting a simple UDP server, a little help please?</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155994-writting-simple-udp-server-little-help-please.html</link>
			<pubDate>Fri, 20 Nov 2009 15:36:56 GMT</pubDate>
			<description>Hi there, 
 
how are u all doing? 
 
I am writing a simple UDP server, and I have a quick question, I want my server to serve only one client at a...</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
how are u all doing?<br />
<br />
I am writing a simple UDP server, and I have a quick question, I want my server to serve only one client at a time, but I really have no idea where to start, any tips on how to do that, is there a specific function i should use, like for example, connect?<br />
<br />
I googled it but to no avail!!<br />
<br />
any help is appreciated!!<br />
<br />
thank u in advance</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>a_n_h</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155994-writting-simple-udp-server-little-help-please.html</guid>
		</item>
		<item>
			<title>simulation using modelsim and xilinx of scripts in fedora linux</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155986-simulation-using-modelsim-xilinx-scripts-fedora-linux.html</link>
			<pubDate>Fri, 20 Nov 2009 13:09:25 GMT</pubDate>
			<description>Gadnet a newbie 
Is there anyone  ready to assist me? Then cordially let me know what is hindering me from doing this bit of work.  
It seems i have...</description>
			<content:encoded><![CDATA[<div>Gadnet a newbie<br />
Is there anyone  ready to assist me? Then cordially let me know what is hindering me from doing this bit of work. <br />
It seems i have not been able to map the files correctly, that which i do not know to do. I will be gratefull if one of the Linux gurus would like to help.<br />
I do not know where the libraries are, this will enable me creat the directory &quot; vlib mti_work and vmap work mti_work&quot;<br />
I do not know where they are so i direct them to my projects or rather copy them to the directory.<br />
<br />
<br />
-*- mode: compilation; default-directory: &quot;~/projects/transcripts/&quot; -*-<br />
make -k projects/transcripts/compile.do<br />
make: *** No rule to make target `projects/transcripts/compile.do'.<br />
Compilation exited abnormally with code 2</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>gadnet</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155986-simulation-using-modelsim-xilinx-scripts-fedora-linux.html</guid>
		</item>
		<item>
			<title>Shell Script for Downloading Images</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155982-shell-script-downloading-images.html</link>
			<pubDate>Fri, 20 Nov 2009 10:57:48 GMT</pubDate>
			<description><![CDATA[I am looking to create a shell script to download and image and then go onto the next and download it. 
 
say from <website>. com/family1.jpg it...]]></description>
			<content:encoded><![CDATA[<div>I am looking to create a shell script to download and image and then go onto the next and download it.<br />
<br />
say from &lt;website&gt;. com/family1.jpg it would download that pic and then go onto family2.jpg etc etc.. until there are no more. Any help would be appreciated.</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>wizofozz</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155982-shell-script-downloading-images.html</guid>
		</item>
		<item>
			<title>Help with Code:Blocks</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155951-help-code-blocks.html</link>
			<pubDate>Thu, 19 Nov 2009 18:30:04 GMT</pubDate>
			<description><![CDATA[I have tried a few and can't get them to work. I liked code blocks but when i ran my program nothing happened it was the Hello world program they...]]></description>
			<content:encoded><![CDATA[<div>I have tried a few and can't get them to work. I liked code blocks but when i ran my program nothing happened it was the Hello world program they auto generate i just wanted to test it out. There was no output. the program ran and nothing happened.<br />
<br />
I am used to Visual Studio where the program is run in the command prompt but nothing happens in Code:Blocks. The program compiles but i don't know if its even run. Code:Blocks had the Intel C++ compiler selected and it couldn't find it so I switched to the GNU compiler. I don't know it that helps<br />
<br />
I am not a serious C++ programmer I just like to play around with it.</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>Mac_Attack18</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155951-help-code-blocks.html</guid>
		</item>
		<item>
			<title>Will Poll miss events</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155936-will-poll-miss-events.html</link>
			<pubDate>Thu, 19 Nov 2009 12:31:21 GMT</pubDate>
			<description>Hi all, 
 
I have a question. 
I have two threads which have two different sets of fds which will be polled using poll( time out = 0 ) system call...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have a question.<br />
I have two threads which have two different sets of fds which will be polled using poll( time out = 0 ) system call one thread at a time.<br />
Since no of fds in every thread will be in order of 100.<br />
I just want to know, when an event comes for an fd, will the event for that particular fd will wait till it is being polled.<br />
<br />
what are the chances of poll missing the events?. I hope this might have been discussed earlier. If so then can you point me to the correct link. I searched for it but I am not able to find any relevant links.<br />
<br />
thanks in advance<br />
srinath.D</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>srinathduraisamy</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155936-will-poll-miss-events.html</guid>
		</item>
		<item>
			<title>bash: change language for scirpt only</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155926-bash-change-language-scirpt-only.html</link>
			<pubDate>Thu, 19 Nov 2009 08:40:26 GMT</pubDate>
			<description>hi! 
 
I have some problems with a bash-script. e.g. I will find out my ip. I do it with a grep to ifconfig. 
but in relation to the systems language...</description>
			<content:encoded><![CDATA[<div>hi!<br />
<br />
I have some problems with a bash-script. e.g. I will find out my ip. I do it with a grep to ifconfig.<br />
but in relation to the systems language my grep will fail because the text between the information differs from language to language (Adresse is german, address in english, .....)<br />
<br />
is it possible to change the language for a scipt ONLY that my grep will work on every machine??<br />
<br />
thanks!<br />
chris</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>chris123a</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155926-bash-change-language-scirpt-only.html</guid>
		</item>
		<item>
			<title>Number of files that are kept open by a certain process</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155923-number-files-kept-open-certain-process.html</link>
			<pubDate>Thu, 19 Nov 2009 06:45:01 GMT</pubDate>
			<description>Hi All,  
 
How can I get the number of files that are kept open by a certain process at a certain time using C++ ? 
 
I want to call the Linux...</description>
			<content:encoded><![CDATA[<div>Hi All, <br />
<br />
How can I get the number of files that are kept open by a certain process at a certain time using C++ ?<br />
<br />
I want to call the Linux system function that provides me with that information from within C++ source code, for which the number of open files kept open by itself matters to me.<br />
<br />
By the way, this C++ source code continuously opens up new files for writing.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>aryan_</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155923-number-files-kept-open-certain-process.html</guid>
		</item>
		<item>
			<title>cript to tar all files last month and place to another partition</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155922-cript-tar-all-files-last-month-place-another-partition.html</link>
			<pubDate>Thu, 19 Nov 2009 06:34:32 GMT</pubDate>
			<description>All my user has a directory called backup on each of their home directory. All files was a text file. I want to backup those file after a month had...</description>
			<content:encoded><![CDATA[<div>All my user has a directory called backup on each of their home directory. All files was a text file. I want to backup those file after a month had past using tar and delete the file after I tar it.<br />
<br />
Here is my some of the command I'm thinking of<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				#!/bin/bash<br />
<br />
<br />
DATE=`date --date=&quot;1 month ago&quot; | awk '{print $2}'`<br />
<br />
ls -l /home/user/Maildir/backup/ | grep $DATE | awk '{print $9}' | xargs tar crvf user-200910.tar.gz
			
			<hr />
		</td>
	</tr>
	</table>
</div>I want to apply this command to all my users in the server. I just want to ask some guru in scripting.<br />
<br />
Is my script suitable to what I need? Is there any possibility of bottleneck that might cause slow on the server? How can I apply this script to all user's backup dir and each has their own filename?</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>packets</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155922-cript-tar-all-files-last-month-place-another-partition.html</guid>
		</item>
		<item>
			<title>reading a other users variables</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155887-reading-other-users-variables.html</link>
			<pubDate>Wed, 18 Nov 2009 13:05:05 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm making a script that change the root password every 12 hours! the idea is: that when a user logged in he need to read first his mail with...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm making a script that change the root password every 12 hours! the idea is: that when a user logged in he need to read first his mail with a new password. The script (that is running as root in cron) sends the mail with the new password by doing<br />
echo &quot;this is the new password: $pasword&quot; |mail -s &quot;password&quot; user<br />
When user opens his mail to have a look to the new password it shows him: &quot;this is the new password:       &quot; So it seems that user can't read the variable because it&#347; a variable of root. Is there a way that only a special group of users can't read this variable?<br />
<br />
Thanks for your help!<br />
<br />
With kind regards<br />
<br />
Jerome Kuchler</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>stierenkeutel</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155887-reading-other-users-variables.html</guid>
		</item>
		<item>
			<title>compiling checkIn.cpp</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155885-compiling-checkin-cpp.html</link>
			<pubDate>Wed, 18 Nov 2009 11:45:27 GMT</pubDate>
			<description><![CDATA[Hi there, 
I am compiling checkIn.cpp using g++ and it's giving following error. Pls help.. 
 
checkin.cpp:5:18: error: stdlib: No such file or...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
I am compiling checkIn.cpp using g++ and it's giving following error. Pls help..<br />
<br />
checkin.cpp:5:18: error: stdlib: No such file or directory<br />
checkin.cpp: In function 'int main()':<br />
checkin.cpp:10: error: 'queue' was not declared in this scope<br />
checkin.cpp:10: error: 'string' was not declared in this scope<br />
checkin.cpp:10: error: 'q' was not declared in this scope<br />
checkin.cpp:14: error: 'ifstream' was not declared in this scope<br />
checkin.cpp:14: error: expected `;' before 'fin'<br />
checkin.cpp:16: error: 'fin' was not declared in this scope<br />
checkin.cpp:19: error: 'cout' was not declared in this scope<br />
checkin.cpp:19: error: 'endl' was not declared in this scope<br />
checkin.cpp:41: error: 'cout' was not declared in this scope<br />
checkin.cpp:46: error: 'cout' was not declared in this scope<br />
checkin.cpp:51: error: 'cout' was not declared in this scope<br />
checkin.cpp:58: error: 'cout' was not declared in this scope<br />
checkin.cpp:63: error: 'cout' was not declared in this scope<br />
checkin.cpp:66: error: 'endl' was not declared in this scope<br />
checkin.cpp:72: error: 'endl' was not declared in this scope<br />
checkin.cpp:78: error: 'endl' was not declared in this scope</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>niketa</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155885-compiling-checkin-cpp.html</guid>
		</item>
		<item>
			<title>ANSI C Pre-processor - how to use constant suffix?</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155882-ansi-c-pre-processor-how-use-constant-suffix.html</link>
			<pubDate>Wed, 18 Nov 2009 11:18:58 GMT</pubDate>
			<description>Hi, 
 
Suppose I have some code like this: 
 
 
Code: 
--------- 
const unsigned int = 0x1234abcdU; 
--------- 
I want to achieve this with a macro. ...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Suppose I have some code like this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">const unsigned int = 0x1234abcdU;</code><hr />
</div>I want to achieve this with a macro.  Something like:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">const unsigned int = CREATE_UINT(0x1234, 0xabcd);</code><hr />
</div>Optimistically I tried this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#define CREATE_UINT(a,b) ((a &lt;&lt; 16) | (b))U</code><hr />
</div>The problem is that the &quot;U&quot; won't compile because of the brackets in the macro definition.  I've tried many combinations of adding/removing brackets and of putting the U elsewhere but I still can't define a valid macro.  Any ideas for a solution?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>xyz000</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155882-ansi-c-pre-processor-how-use-constant-suffix.html</guid>
		</item>
		<item>
			<title>large number of simultaneous open files</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155880-large-number-simultaneous-open-files.html</link>
			<pubDate>Wed, 18 Nov 2009 10:43:35 GMT</pubDate>
			<description>Hi All, 
 
I know that there is an OS limitation on the number of files that can be kept open for writing simultaneously. 
 
However, I want to...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I know that there is an OS limitation on the number of files that can be kept open for writing simultaneously.<br />
<br />
However, I want to somehow overcome this limitation.<br />
<br />
Let's say, if I have to process X number of files simultaneously at a certain time, where X is greater than the number of simultaneously open files that OS can handle, it seems to be the only solution to close the oldest files which were opened before any others first, and open the new ones instead.<br />
<br />
Maybe a circular buffer or something similar is needed for this.<br />
<br />
What is the best way to handle such a scenario in Linux using C++ ?<br />
<br />
What Linux system function gives me the number of files that I can keep open at a certain time ?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>aryan_</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155880-large-number-simultaneous-open-files.html</guid>
		</item>
		<item>
			<title><![CDATA[Can't locate MIME::Lite.pm in @INC]]></title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155874-cant-locate-mime-lite-pm-inc.html</link>
			<pubDate>Wed, 18 Nov 2009 07:38:08 GMT</pubDate>
			<description>Hi all,  
 
I am new in Perl language. I wrote a perl script to send an email notification to users by using: 
 
use MIME::Lite; 
 
However, i get...</description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
I am new in Perl language. I wrote a perl script to send an email notification to users by using:<br />
<br />
use MIME::Lite;<br />
<br />
However, i get the error:<br />
Can't locate MIME Lite.pm in @INC(@INC contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl .) at email.pl line 5.<br />
BEGIN failed--compilation aborted at email.pl line 5.<br />
<br />
Below is the simplify version for my code. What 's wrong with my coding?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">my $message = MIME::Lite-&gt;new(<br />
To =&gt; 'xxx@mail.com',<br />
Subject =&gt; 'message',<br />
Data =&gt; 'Message body'<br />
);<br />
$message-&gt;send();</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>pu8y</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155874-cant-locate-mime-lite-pm-inc.html</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] sometimes works, sometimes doesn't !?]]></title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155867-solved-sometimes-works-sometimes-doesnt.html</link>
			<pubDate>Tue, 17 Nov 2009 21:34:34 GMT</pubDate>
			<description><![CDATA[his, 
 
this is some quirk or something. 
 
i have this line in a bash script: 
 
Code: 
--------- 
cat $sortfile | sort -nr > $sortfile 
---------]]></description>
			<content:encoded><![CDATA[<div>his,<br />
<br />
this is some quirk or something.<br />
<br />
i have this line in a bash script:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">cat $sortfile | sort -nr &gt; $sortfile</code><hr />
</div>$sortfile is some text file  with lines like:number.some_text ...<br />
<br />
i don't understand why this works erratically...<br />
<br />
i changed to:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">cat $sortfile | sort -nr &gt; $sortfile-2</code><hr />
</div>and now it seems ok<br />
<br />
what should i be learning here?...</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>clickalot</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155867-solved-sometimes-works-sometimes-doesnt.html</guid>
		</item>
		<item>
			<title>Missing argument to -exec</title>
			<link>http://www.linuxforums.org/forum/linux-programming-scripting/155838-missing-argument-exec.html</link>
			<pubDate>Mon, 16 Nov 2009 20:45:40 GMT</pubDate>
			<description><![CDATA[I was wondering if anyone could explain what is wrong with this.  I keep getting a missing argument to `-exec'  
 
find /data/shippers -name "*.txt"...]]></description>
			<content:encoded><![CDATA[<div>I was wondering if anyone could explain what is wrong with this.  I keep getting a missing argument to `-exec' <br />
<br />
find /data/shippers -name &quot;*.txt&quot; -mtime 2 -type f -exec tar czvf $1.$(date +%y%m%d-%H%M%S).tar /data/shippers/archive<br />
<br />
What I am trying to do is find all the txt files that are 2 to 3 days old and archiving them into the archive folder.  Any advice or help would be greatly appreciated.<br />
<br />
Thank You in advance<br />
<br />
Winston</div>

]]></content:encoded>
			<category domain="http://www.linuxforums.org/forum/linux-programming-scripting/"><![CDATA[Linux Programming & Scripting]]></category>
			<dc:creator>R_Winston</dc:creator>
			<guid isPermaLink="true">http://www.linuxforums.org/forum/linux-programming-scripting/155838-missing-argument-exec.html</guid>
		</item>
	</channel>
</rss>
