<?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>The UNIX and Linux Forums</title>
		<link>http://www.unix.com/</link>
		<description>UNIX and Linux Forums - Learn UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 21:44:14 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>5</ttl>
		<image>
			<url>http://solaris.unix.com/images/misc/rss.jpg</url>
			<title>The UNIX and Linux Forums</title>
			<link>http://www.unix.com/</link>
		</image>
		<item>
			<title>do a full comparison of folder contents in script</title>
			<link>http://www.unix.com/shell-programming-scripting/124280-do-full-comparison-folder-contents-script-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 21:34:59 GMT</pubDate>
			<description><![CDATA[Hello everyone.... 
 
I have a small issue here at work and I am trying to script out a way to automate a fix for it.  I have a small number of users (I work in a 1:1 with 6,000 macbooks) that aren't really managed in my deployment.  They are managed with a few policies, but the policies are broken...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone....<br />
<br />
I have a small issue here at work and I am trying to script out a way to automate a fix for it.  I have a small number of users (I work in a 1:1 with 6,000 macbooks) that aren't really managed in my deployment.  They are managed with a few policies, but the policies are broken because they never turn their laptops in or get them reimaged.  I have had to wipe LDAP a few times for upgrades/maintenance/fixes and their synchronized portable home directory has a different UID than the new UID since I did fresh imports of user accounts both times I destroyed and rebuilt LDAP.<br />
<br />
So, I have a script written which seems to be going the correct way of doing this, but I am not exactly a Unix wizard so I have some basic questions hopefully someone here can help me with.  <br />
<br />
The script's function will be to copy all local user accounts in /Users to /Users/username.bu for a full back up of the account.  Then, it will initiate a log out, and a log out hook that will run the second script that will verify all data is copied to the back up folder (.bu) and then delete the account from directory services and wipe the original data out of their local user account.  <br />
<br />
This way, when the user logs in next, they will have pulled down the new account to their machine that has the exact same user/password but this time it will be the right UID.  Then they will be in the proper OD groups and get group policy as normal.  <br />
<br />
I hope that makes sense.  Also, only accounts that have a UID higher than 1000+ are directory accounts, so I want to ignore all accounts with an UID less than 999.  <br />
<br />
So far here is my script I wrote, and like I mentioned, I am completely self taught and have no formal education in programming.<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">#!/bin/bash<br />
<br />
#<br />
# First we need to grab the synchronnized user account<br />
# All directory accounts will have a UID greater than 1000<br />
# All local accounts will have a UID of 500 to 999<br />
# We only want to move accounts with UID of greater than 1000<br />
# This will also exclude the shared folder<br />
#<br />
<br />
userlist=`/bin/ls /Users | /usr/bin/grep -v &quot;^Shared&quot;`<br />
<br />
checkuid=`/usr/bin/dscl . read /Users/$i UniqueID | /usr/bin/awk '/ID/ { print $2 }'`<br />
<br />
for i in $userlist ; do<br />
<br />
if (( $checkuid &gt; 999 )) <br />
<br />
&nbsp; &nbsp; then /bin/mkdir /Users/$i.bu ;; /bin/cp -R /Users/$i /Users/$i.bu<br />
<br />
&nbsp; &nbsp; else /bin/echo &quot;$i is not a directory user&quot;<br />
<br />
fi<br />
<br />
done<br />
<br />
#<br />
# now the tricky part we need to verify what was done, is done then delete the old account<br />
# so the user can sync the new account with the proper UID<br />
#<br />
<br />
homefolder=`/bin/ls -l $userlist/`<br />
<br />
backup=&quot;/Users/$userlist.bu&quot;<br />
<br />
# now compare contents<br />
<br />
if [[ $homefolder == $backup ]]<br />
<br />
&nbsp; &nbsp; then /usr/sbin/dscl . -delete /Users/$userlist<br />
<br />
&nbsp; &nbsp; else /bin/echo &quot;Contents do not match, exiting&quot;<br />
<br />
&nbsp; &nbsp; exit 1<br />
<br />
fi<br />
<br />
done<br />
<br />
#<br />
# Now remove the contents of those user accounts by comparing what has <br />
# .bu on the end<br />
#<br />
<br />
removeuser=`/bin/ls /Users | /usr/bin/grep &quot;.bu&quot;<br />
<br />
/bin/rm -rf /Users/$removeuser<br />
<br />
exit 0</code><hr />
</div>Now the second script will just copy that data back after the user logs in again and resynchronizes their PHD with the proper UID.  Then the last bit will apply ownership to that new UID and exit.<br />
<br />
A few questions....<br />
<br />
1)  Should I have used an integer comparison when comparing the current UID to it being greater than 999?<br />
<br />
2)  There are probably some issues with this script as I have not tested it out fully yet, because I was wanting some feed back to see if there was a better way to go.  Is there a more efficient way to go about this?<br />
<br />
<br />
Thanks for anyone who can help, it is greatly appreciated.<br />
<br />
Tom</div>

]]></content:encoded>
			<category domain="http://www.unix.com/shell-programming-scripting/">Shell Programming and Scripting</category>
			<dc:creator>tlarkin</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/shell-programming-scripting/124280-do-full-comparison-folder-contents-script.html</guid>
		</item>
		<item>
			<title>Good Consultants</title>
			<link>http://www.unix.com/cartoons-geeks/124279-good-consultants-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 21:15:05 GMT</pubDate>
			<description>2009-11-20T21:58:31+01:00  
Image: http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef012875bec315970c-800wi  (http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef012875bec315970c-pi)</description>
			<content:encoded><![CDATA[<div>2009-11-20T21:58:31+01:00 <br />
<a href="http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef012875bec315970c-pi" target="_blank"><img src="http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef012875bec315970c-800wi" border="0" alt="" /></a> <br />
 <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="http://feeds.feedburner.com/~ff/GeekAndPoke?a=2Lf22_FyyT8:d9pQnyKzOmc:yIl2AUoC8zA" target="_blank"><img src="http://feeds.feedburner.com/~ff/GeekAndPoke?d=yIl2AUoC8zA" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/GeekAndPoke?a=2Lf22_FyyT8:d9pQnyKzOmc:V_sGLiPBpWU" target="_blank"><img src="http://feeds.feedburner.com/~ff/GeekAndPoke?i=2Lf22_FyyT8:d9pQnyKzOmc:V_sGLiPBpWU" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/GeekAndPoke?a=2Lf22_FyyT8:d9pQnyKzOmc:qj6IDK7rITs" target="_blank"><img src="http://feeds.feedburner.com/~ff/GeekAndPoke?d=qj6IDK7rITs" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/GeekAndPoke?a=2Lf22_FyyT8:d9pQnyKzOmc:7Q72WNTAKBA" target="_blank"><img src="http://feeds.feedburner.com/~ff/GeekAndPoke?d=7Q72WNTAKBA" border="0" alt="" /></a><br />
<img src="http://feeds.feedburner.com/~r/GeekAndPoke/~4/2Lf22_FyyT8" border="0" alt="" /><br />
<br />
<a href="http://feedproxy.google.com/~r/GeekAndPoke/~3/2Lf22_FyyT8/good-consultants.html" target="_blank">Source...</a></div>

]]></content:encoded>
			<category domain="http://www.unix.com/cartoons-geeks/">Cartoons for Geeks</category>
			<dc:creator>iBot</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/cartoons-geeks/124279-good-consultants.html</guid>
		</item>
		<item>
			<title>help with script</title>
			<link>http://www.unix.com/shell-programming-scripting/124278-help-script-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 21:05:29 GMT</pubDate>
			<description>I have a file which is *comma* delimited.  I have around 35 fields in each row.  The problem is in the 21st field I have data separated by “*;*”  I need the data in only the 21st field separated by “;” to be replaced by “|”.  This is a very big file and I need something in awk that its much faster...</description>
			<content:encoded><![CDATA[<div>I have a file which is <b>comma</b> delimited.  I have around 35 fields in each row.  The problem is in the 21st field I have data separated by “<b>;</b>”  I need the data in only the 21st field separated by “;” to be replaced by “|”.  This is a very big file and I need something in awk that its much faster than regular commands.  Can anybody tell exactly how I can only achieve this for 21st field.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/shell-programming-scripting/">Shell Programming and Scripting</category>
			<dc:creator>dsravan</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/shell-programming-scripting/124278-help-script.html</guid>
		</item>
		<item>
			<title>How to Pull out multiple files from DB table and redirect all those files to a differetn directory?</title>
			<link>http://www.unix.com/shell-programming-scripting/124277-how-pull-out-multiple-files-db-table-redirect-all-those-files-differetn-directory-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 20:54:24 GMT</pubDate>
			<description>Hi everyone!! 
 
I have a *database table*, which has file_name as one of its fields.  
Example: 
 
File_ID   File_Name   Directory   Size 
0001     UNO_1232   /apps/opt  234 
0002     UNO_1234   /apps/opt  788 
0003     UNO_1235   /apps/opt  897 
0004     UNO_1236   /apps/opt  568</description>
			<content:encoded><![CDATA[<div>Hi everyone!!<br />
<br />
I have a <b>database table</b>, which has file_name as one of its fields. <br />
Example:<br />
<br />
File_ID   File_Name   Directory   Size<br />
0001     UNO_1232   /apps/opt  234<br />
0002     UNO_1234   /apps/opt  788<br />
0003     UNO_1235   /apps/opt  897<br />
0004     UNO_1236   /apps/opt  568<br />
<br />
I have to extract all the files whose size is greater than 500 and send all those files to a different directory /apps/opt/new <br />
<br />
How do I loop through the table and send all those file_names, which match the size criteria to a different directory?<br />
<br />
Thanks in advance..<br />
Please do help me out, as this is very urgent for me.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/shell-programming-scripting/">Shell Programming and Scripting</category>
			<dc:creator>ss3944</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/shell-programming-scripting/124277-how-pull-out-multiple-files-db-table-redirect-all-those-files-differetn-directory.html</guid>
		</item>
		<item>
			<title>finding files with unicode chars in the filename</title>
			<link>http://www.unix.com/shell-programming-scripting/124276-finding-files-unicode-chars-filename-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 20:00:13 GMT</pubDate>
			<description><![CDATA[I'm trying to check-in a repository to svn -- but the import is failing because some files waaaay down deep in some graphics-library folder are using unicode characters in the file name - which are masked using the ls command but picked up when piping output to more: 
 
[root@dev-www-02 emoticons]#...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to check-in a repository to svn -- but the import is failing because some files waaaay down deep in some graphics-library folder are using unicode characters in the file name - which are masked using the ls command but picked up when piping output to more:<br />
<br />
[root@dev-www-02 emoticons]# ls -l 1914*<br />
-rwxrwxr-x 1 apache apache 1398 Dec  9  2008 1914OdiN_Presenta_-_o_?.bmp<br />
[root@dev-www-02 emoticons]# ls -l 1914* | more<br />
-rwxrwxr-x 1 apache apache 1398 Dec  9  2008 1914OdiN_Presenta_-_o_ò.bmp<br />
<br />
Optimally, I'd like to be able to search and quarantine these files into a directory out of the repository tree, but I'm brickwalling :mad: trying to figure out the search string...<br />
<br />
I've tried variants of grep '^[A-Za-z0-9]' but can't turn up the right combination.<br />
<br />
tia...</div>

]]></content:encoded>
			<category domain="http://www.unix.com/shell-programming-scripting/">Shell Programming and Scripting</category>
			<dc:creator>mshallop</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/shell-programming-scripting/124276-finding-files-unicode-chars-filename.html</guid>
		</item>
		<item>
			<title>How to read the latest file name in adirectory.</title>
			<link>http://www.unix.com/aix/124275-how-read-latest-file-name-adirectory-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 19:49:32 GMT</pubDate>
			<description>Hello all, 
  
In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory. 
 
Code: 
--------- 
/tmp/public/logs/ 
--------- 
  
In this directory, I want to get the latest file that was created. Can you give me a hint as how...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
 <br />
In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory.<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">/tmp/public/logs/</code><hr />
</div>In this directory, I want to get the latest file that was created. Can you give me a hint as how can I get the latest file, based on timestamp?<br />
 <br />
Thanks in advance...</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>haroon_a</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124275-how-read-latest-file-name-adirectory.html</guid>
		</item>
		<item>
			<title><![CDATA[kill -3 <PID> ... where the output file goes?]]></title>
			<link>http://www.unix.com/aix/124273-kill-3-pid-where-output-file-goes-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 18:03:53 GMT</pubDate>
			<description><![CDATA[Hi all, 
  
I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/. 
  
I tried the following: 
  
 
Code: 
--------- 
kill -3 9404940>/tmp/dump/out.txt]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
 <br />
I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.<br />
 <br />
I tried the following:<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">kill -3 9404940&gt;/tmp/dump/out.txt</code><hr />
</div>But it created /tmp/dump/out.txt with 0 KB, and yet it created the dump file in JBOSS_HOME/ directory.<br />
 <br />
Can you please let me know how can I have kill -3 to create the core dump file in the desired location?<br />
 <br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>haroon_a</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124273-kill-3-pid-where-output-file-goes.html</guid>
		</item>
		<item>
			<title>problam with diff</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/124272-problam-diff-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 18:03:14 GMT</pubDate>
			<description><![CDATA[hi, I want to compare 2 files and see if there is a difference between them 
so i did: 
set aa = `diff file1.txt file2.txt` 
if ($aa == "") then 
echo "no difference" 
else 
echo "different files" 
endif 
  
and i get the error msg:]]></description>
			<content:encoded><![CDATA[<div>hi, I want to compare 2 files and see if there is a difference between them<br />
so i did:<br />
set aa = `diff file1.txt file2.txt`<br />
if ($aa == &quot;&quot;) then<br />
echo &quot;no difference&quot;<br />
else<br />
echo &quot;different files&quot;<br />
endif<br />
 <br />
and i get the error msg:<br />
if: Badly formed number.<br />
<br />
 <br />
 <br />
now when im doing the ccomperation like this:<br />
set aa<br />
if ($aa == &quot;&quot;) then<br />
echo &quot;no difference&quot;<br />
else<br />
echo &quot;different files&quot;<br />
endif<br />
 <br />
 <br />
it works good.<br />
why the diff doing problams??<br />
what can i do?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>nirnir26</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/124272-problam-diff.html</guid>
		</item>
		<item>
			<title>Mandriva: glpi</title>
			<link>http://www.unix.com/security-advisories-rss/124271-mandriva-glpi-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 18:00:05 GMT</pubDate>
			<description>*LinuxSecurity.com*: This is a maintenance and bugfix release that updates glpi to 0.72.3.  
 
More... (http://www.linuxsecurity.com/content/view/150789?rdf)</description>
			<content:encoded><![CDATA[<div><b>LinuxSecurity.com</b>: This is a maintenance and bugfix release that updates glpi to 0.72.3. <br />
<br />
<a href="http://www.linuxsecurity.com/content/view/150789?rdf" target="_blank">More...</a></div>

]]></content:encoded>
			<category domain="http://www.unix.com/security-advisories-rss/">Security Advisories (RSS)</category>
			<dc:creator>iBot</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/security-advisories-rss/124271-mandriva-glpi.html</guid>
		</item>
		<item>
			<title>Snoop perl script</title>
			<link>http://www.unix.com/sun-solaris/124269-snoop-perl-script-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 17:02:20 GMT</pubDate>
			<description>Hi , 
  
I would like to write a perl script with the snoop command to capture packets from a specific IP address to a node (incoming packets) and packets from that node for the same session to another node and save the capture to a file. I would like my script to be able to read my IP all the time...</description>
			<content:encoded><![CDATA[<div>Hi ,<br />
 <br />
I would like to write a <acronym title="Practical Extraction and Report Language">perl</acronym> script with the snoop command to capture packets from a specific IP address to a node (incoming packets) and packets from that node for the same session to another node and save the capture to a file. I would like my script to be able to read my IP all the time from the keyboard. I would like also to be able to determine for how how long the script should run. Let's say 60 seconds and then kill the snoop process after that period. Below is an example of the command.<br />
 <br />
snoop -o /tmp/snooper -V 128.50.1.250<br />
 <br />
let's say my snoop is called snoop1. I would like to be able to execute that way: ./snoop1 128.50.1.250 60.......where the 128.50.1.250 is the ip I want to capture the packets from and 60 the amount of time I want the script to run and then kill the snoop process.<br />
 <br />
Thanks for your help.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/sun-solaris/">SUN Solaris</category>
			<dc:creator>Pouchie1</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/sun-solaris/124269-snoop-perl-script.html</guid>
		</item>
		<item>
			<title>Technical Article: Creating Prebundled Machine Images for the Cloud</title>
			<link>http://www.unix.com/oracle-updates-rss/124268-technical-article-creating-prebundled-machine-images-cloud-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 16:45:12 GMT</pubDate>
			<description>Learn how to create a custom virtual machine image prebundled with Oracle WebLogic Server 11g and Oracle Database XE, as well as the basics of creating init scripts and configuring services to run at user-defined runlevels 
 
More... (http://www.oracle.com/technology/pub/articles/nair-paas.html)</description>
			<content:encoded><![CDATA[<div>Learn how to create a custom virtual machine image prebundled with Oracle WebLogic Server 11g and Oracle Database XE, as well as the basics of creating init scripts and configuring services to run at user-defined runlevels<br />
<br />
<a href="http://www.oracle.com/technology/pub/articles/nair-paas.html" target="_blank">More...</a></div>

]]></content:encoded>
			<category domain="http://www.unix.com/oracle-updates-rss/">Oracle Updates (RSS)</category>
			<dc:creator>iBot</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/oracle-updates-rss/124268-technical-article-creating-prebundled-machine-images-cloud.html</guid>
		</item>
		<item>
			<title>df command always return 0%</title>
			<link>http://www.unix.com/sun-solaris/124267-df-command-always-return-0-a-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 16:34:30 GMT</pubDate>
			<description><![CDATA[Hi, I don't know why but about 80% of time when I execute the command 
"df -v /directory" the output is always 0% used.  Anyone have clue to why this is happening?  Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi, I don't know why but about 80% of time when I execute the command<br />
&quot;df -v /directory&quot; the output is always 0% used.  Anyone have clue to why this is happening?  Thanks.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/sun-solaris/">SUN Solaris</category>
			<dc:creator>polexx</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/sun-solaris/124267-df-command-always-return-0-a.html</guid>
		</item>
		<item>
			<title>Auditd problem</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/124266-auditd-problem-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 15:15:55 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I have the following my logs: 
 
 
Code: 
--------- 
Nov 20 04:02:04 mail-07 kernel: audit: audit_backlog=326 > audit_backlog_limit=320 
Nov 20 04:02:04 mail-07 kernel: audit: audit_lost=4272 audit_rate_limit=0 audit_backlog_limit=320 
Nov 20 04:02:04 mail-07 kernel: audit: backlog limit...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have the following my logs:<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">Nov 20 04:02:04 mail-07 kernel: audit: audit_backlog=326 &gt; audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_lost=4272 audit_rate_limit=0 audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: backlog limit exceeded<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_backlog=326 &gt; audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_lost=4273 audit_rate_limit=0 audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: backlog limit exceeded<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_backlog=326 &gt; audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_lost=4274 audit_rate_limit=0 audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: backlog limit exceeded<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_backlog=326 &gt; audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: audit_lost=4275 audit_rate_limit=0 audit_backlog_limit=320<br />
Nov 20 04:02:04 mail-07 kernel: audit: backlog limit exceeded</code><hr />
</div>What do I do to fix this problem? Please provide a careful explanation as I am new to auditd.<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>mojoman</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/124266-auditd-problem.html</guid>
		</item>
		<item>
			<title>(/var/log/messages) issue</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/124265-var-log-messages-issue-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 14:55:17 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I found this in my logs today for vsftpd: 
 
Code: 
--------- 
Nov 17 08:43:58 ftp vsftpd: Tue Nov 17 13:43:58 2009 [pid 26389] [ccm] OK LOGIN: Client "205.150.86.90" 
Nov 17 08:44:49 ftp avahi-daemon[2443]: Withdrawing address record for 205.111.86.22 on eth0. 
Nov 17 08:44:49 ftp...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I found this in my logs today for vsftpd:<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">Nov 17 08:43:58 ftp vsftpd: Tue Nov 17 13:43:58 2009 [pid 26389] [ccm] OK LOGIN: Client &quot;205.150.86.90&quot;<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Withdrawing address record for 205.111.86.22 on eth0.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Leaving mDNS multicast group on interface eth0.IPv4 with address 205.111.86.22 <br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: iface.c: interface_mdns_mcast_join() called but no local address available.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Interface eth0.IPv4 no longer relevant for mDNS.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Withdrawing address record for fe80::213:20ff:feaf:2fae on eth0.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::213:20ff:feaf:2fae.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: iface.c: interface_mdns_mcast_join() called but no local address available.<br />
Nov 17 08:44:49 ftp avahi-<acronym title="Disk and Execution Monitor">daemon</acronym>[2443]: Interface eth0.IPv6 no longer relevant for mDNS.<br />
Nov 17 08:44:50 ftp kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready<br />
Nov 17 08:44:50 ftp kernel: e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex</code><hr />
</div>What is going on?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>mojoman</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/124265-var-log-messages-issue.html</guid>
		</item>
		<item>
			<title>Insert Text Between Html Tags Sed / Awk ?</title>
			<link>http://www.unix.com/shell-programming-scripting/124264-insert-text-between-html-tags-sed-awk-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 14:07:19 GMT</pubDate>
			<description>Hello, I have searched for the title stringon this post on this site as well as on google with no luck.  I find similar examples, however I am truly having a tough time resolving the issue that I am faced with. 
I have multiple html files that I need to change the title on.  These are simple html...</description>
			<content:encoded><![CDATA[<div>Hello, I have searched for the title stringon this post on this site as well as on google with no luck.  I find similar examples, however I am truly having a tough time resolving the issue that I am faced with.<br />
I have multiple html files that I need to change the title on.  These are simple html text files that look like this:<br />
<br />
Input File:<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">&lt;title&gt;oldtitle&lt;/title&gt;<br />
&lt;body&gt;<br />
this is a test page for this example.<br />
&lt;/body&gt;</code><hr />
</div>Desired Output:<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">&lt;title&gt;newtitle&lt;/title&gt;<br />
&lt;body&gt;<br />
this is a test page for this example.<br />
&lt;/body&gt;</code><hr />
</div><br />
I have tried something like this.  However I think that I am over thinking this.<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"><acronym title="Stream Editor">sed</acronym> -e &quot;s/\(&lt;oldtitle [^&gt;]*&gt;\)[^&lt;]*\(&lt;.*\)/\newtitle\2/g&quot; file1.html &gt; newfile.html</code><hr />
</div>Please Advise,<br />
<br />
Abacus</div>

]]></content:encoded>
			<category domain="http://www.unix.com/shell-programming-scripting/">Shell Programming and Scripting</category>
			<dc:creator>abacus</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/shell-programming-scripting/124264-insert-text-between-html-tags-sed-awk.html</guid>
		</item>
	</channel>
</rss>
