<?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[The UNIX and Linux Forums - UNIX for Advanced & Expert Users]]></title>
		<link>http://www.unix.com/</link>
		<description>Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 21:59:08 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>5</ttl>
		<image>
			<url>http://solaris.unix.com/images/misc/rss.jpg</url>
			<title><![CDATA[The UNIX and Linux Forums - UNIX for Advanced & Expert Users]]></title>
			<link>http://www.unix.com/</link>
		</image>
		<item>
			<title><![CDATA[sh:  syntax error at line 8 : `<<' is not matched.]]></title>
			<link>http://www.unix.com/unix-advanced-expert-users/124191-sh-syntax-error-line-8-not-matched-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 19:54:59 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to execute the above attached script. and i am getting the error as syntax error at line 8: `<<' is not matched. 
 
While i am trying to run that particular line (cat <<EOF > /tmp/query.sql) independently in the prompt it is running successfully without any error. 
 
I am running...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to execute the above attached script. and i am getting the error as syntax error at line 8: `&lt;&lt;' is not matched.<br />
<br />
While i am trying to run that particular line (cat &lt;&lt;EOF &gt; /tmp/query.sql) independently in the prompt it is running successfully without any error.<br />
<br />
I am running it in HP-UX machine and while executing it i am trying using both $./test.sh and $test.sh <br />
<br />
Can anyone help me out on this issue?<br />
<br />
Thanks in advance.<br />
<br />
--Satya</div>


	<br />
	<div style="padding:6px">

	

	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>satyaatcgi</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124191-sh-syntax-error-line-8-not-matched.html</guid>
		</item>
		<item>
			<title>Modifying syslog.conf</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124177-modifying-syslog-conf-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 17:20:14 GMT</pubDate>
			<description><![CDATA[I have a RHEL box that I want to be the loghost for all of the other systems on my network and have set up a /logs partitions to hold all of the logs.  I've also created a file called current.log that will contain daily logs and created it using the following command: cp /dev/null current.log. ...]]></description>
			<content:encoded><![CDATA[<div>I have a RHEL box that I want to be the loghost for all of the other systems on my network and have set up a /logs partitions to hold all of the logs.  I've also created a file called current.log that will contain daily logs and created it using the following command: cp /dev/null current.log.  After that I went into syslog.conf and edited the file and added this entry:<br />
*.info          /logs/rsyslog/current.log<br />
 <br />
Once this is setup the syslog service is stopped and restarted and when i check the current.log file there are messages being written to it.  Once I go back into the syslog.conf file and edit out the *.info file info and revert back to normal the system starts logging messages again. :confused:  Does anyone have any ideas why the system won't write to the current.log file?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>goose25</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124177-modifying-syslog-conf.html</guid>
		</item>
		<item>
			<title>Replace value in files</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124134-replace-value-files-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 10:28:05 GMT</pubDate>
			<description><![CDATA[Hello All,  
 
Please if I could get some help on the following, I have data files (due to 3rd party mistake) within each data file on line/row 3 column/field 3 - there is value '1' that need to be changed to '0'. 
 
For example: 
 
HEAD, TYPE OF FILE 
NAME,ADDRESS 
M,TYPE, *1 *]]></description>
			<content:encoded><![CDATA[<div>Hello All, <br />
<br />
Please if I could get some help on the following, I have data files (due to 3rd party mistake) within each data file on line/row 3 column/field 3 - there is value '1' that need to be changed to '0'.<br />
<br />
For example:<br />
<br />
HEAD, TYPE OF FILE<br />
NAME,ADDRESS<br />
M,TYPE, <b>1 </b><br />
<br />
<br />
Now initially only two data files had the problem, so I was manually changing the 1 to 0 (as the 1 shown above) - but now I've found over 1000 files that actually have the problem (and apparently need to be changed to 0 in the next two hours). I trying to write a Unix script that does all files in one go by using AWK and <acronym title="Stream Editor">SED</acronym> command, or any, But I'm getting no way, any suggestion (all are welcome) .....</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>killos</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124134-replace-value-files.html</guid>
		</item>
		<item>
			<title>UNIX file Permission</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124125-unix-file-permission-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 08:44:08 GMT</pubDate>
			<description>I am trying to FTP files from windows to UNIX (IBM AIX). After having sent the files to unix server. Permisssion of the files becomes 640 (rw-r-----). I have to manually login to unix and do chmod 644 on the folder to give it permission. Is it possible that the files automaically be set to 644 on...</description>
			<content:encoded><![CDATA[<div>I am trying to FTP files from windows to UNIX (IBM AIX). After having sent the files to unix server. Permisssion of the files becomes 640 (rw-r-----). I have to manually login to unix and do chmod 644 on the folder to give it permission. Is it possible that the files automaically be set to 644 on ftp from windows to unix.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>puspendu.das.in</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124125-unix-file-permission.html</guid>
		</item>
		<item>
			<title>RED HAT Backup</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124059-red-hat-backup-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 16:09:37 GMT</pubDate>
			<description>I have a REDHAT (CENTOS) 5.3 server, I need to know the best way to do backups on this system. We want to backup the /home directories to a USB hard drive.  we will rotate the drives out every week. 
 
Suggestions please. 
 
Frank</description>
			<content:encoded><![CDATA[<div>I have a REDHAT (CENTOS) 5.3 server, I need to know the best way to do backups on this system. We want to backup the /home directories to a USB hard drive.  we will rotate the drives out every week.<br />
<br />
Suggestions please.<br />
<br />
Frank</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>frankkahle</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124059-red-hat-backup.html</guid>
		</item>
		<item>
			<title>Track user commands</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124022-track-user-commands-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 07:46:49 GMT</pubDate>
			<description><![CDATA[Hi, 
I have a unix server and I am concerned about the security on that server. 
I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history. 
I was thinking about firing or...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have a unix server and I am concerned about the security on that server.<br />
I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history.<br />
I was thinking about firing or triggering that bacth script upon the call to history. Is this doable and if not are there any other alternatives?<br />
<br />
Thanks --</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>mishkamima</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124022-track-user-commands.html</guid>
		</item>
		<item>
			<title>Postfix config</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124018-postfix-config-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 07:32:24 GMT</pubDate>
			<description>Hi, 
 
I have a problem with configuring postfix. Would like pf to limit the amout of mail that a client can send in for example one hour.  
 
Thought maybe this would be a good idea: 
 
 	 
Code: 
--------- 
 	smtpd_client_message_rate_limit=</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a problem with configuring postfix. Would like pf to limit the amout of mail that a client can send in for example one hour. <br />
<br />
Thought maybe this would be a good idea:<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">&nbsp; &nbsp; &nbsp; &nbsp;  smtpd_client_message_rate_limit=</code><hr />
</div>But what happens then is that smtpserver sends maximum amount for that time unit then WAITS until it's ok to send again. <br />
<br />
All the mail are finally send, just they get queued until it's done. That is not what I want. <br />
<br />
I would like to have the possibility to warn the client and then reject further mail. Not delay to queue. <br />
<br />
Is it possible? Should I instead use another parameter which is more sufficent for this task? <br />
<br />
Most people recommend policyd on this but I would still prefer to do it within postfix if it is possible. <br />
<br />
Would be very greatful for any help, thanks!</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>fisfia</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124018-postfix-config.html</guid>
		</item>
		<item>
			<title>Transport Error</title>
			<link>http://www.unix.com/unix-advanced-expert-users/124004-transport-error-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 02:28:00 GMT</pubDate>
			<description>Dear Friends, 
  
I am using Solaris 10 on Sun Sparc T5120 with 4 HDD(Raid).I am getting transport error in one of my mirrored HDD c1t2d0. Below is a screen shot. I have replaced the HDD with new one but still the same. Any one can help???? 
  
c1t2d0           Soft Errors: 0 Hard Errors: 0...</description>
			<content:encoded><![CDATA[<div>Dear Friends,<br />
 <br />
I am using Solaris 10 on Sun Sparc T5120 with 4 HDD(Raid).I am getting transport error in one of my mirrored HDD c1t2d0. Below is a screen shot. I have replaced the HDD with new one but still the same. Any one can help????<br />
 <br />
c1t2d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 134 <br />
Vendor: SEAGATE  Product: ST973402SSUN72G  Revision: 0603 Serial No: 080122CMVJ <br />
Size: 73.40GB &lt;73400057856 bytes&gt;<br />
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 <br />
Illegal Request: 0 Predictive Failure Analysis: 0<br />
 <br />
Thanks in Advance.<br />
Subrat</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>solaris5.10</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/124004-transport-error.html</guid>
		</item>
		<item>
			<title>Extract data from a particular point in a file</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123990-extract-data-particular-point-file-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 21:38:27 GMT</pubDate>
			<description>Hi, 
 
I wanted to extract the data from a particular comma from each line. 
 
My file contains some 10000 lines and each lines are separated by commas. There are 60 fields which are separated by 59 commas. 
I wanted to show the data which are there after the 49th comma from each line. 
 
For...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I wanted to extract the data from a particular comma from each line.<br />
<br />
My file contains some 10000 lines and each lines are separated by commas. There are 60 fields which are separated by 59 commas.<br />
I wanted to show the data which are there after the 49th comma from each line.<br />
<br />
For example if i want the data from 4th comma onward for each line from the below file:<br />
<br />
File1.txt<br />
---------<br />
a,b,c,d,e,f,g<br />
h,r,t,y,u,d,g<br />
d,g,k,u,t,e,s<br />
m,l,o,y,s,w,d,f,g<br />
<br />
The output should be<br />
-----------------------<br />
e,f,g<br />
u,d,g<br />
t,e,s<br />
s,w,d,f,g<br />
<br />
can we have a command which will give the desired output?<br />
<br />
Thanks in advance.<br />
<br />
--Satya</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>satyaatcgi</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123990-extract-data-particular-point-file.html</guid>
		</item>
		<item>
			<title>Sorted file</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123953-sorted-file-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 12:39:06 GMT</pubDate>
			<description>Hi 
 
 
 
Is there any unix shell command or utility to know if the file is sorted or not? 
 
 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
<br />
<br />
Is there any unix shell command or utility to know if the file is sorted or not?<br />
<br />
<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>ksailesh</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123953-sorted-file.html</guid>
		</item>
		<item>
			<title>How do I change the minimum working frequency ?</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123891-how-do-i-change-minimum-working-frequency-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 23:10:42 GMT</pubDate>
			<description>The file /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_frequency reads a value of 800 Mhz . The powertop tool also suggested that 800 Mhz w3as the minimum frequency being used . I changed the above-mentioned file to 1.6 GHz and monitored powertop tool again . To my surprise, it still said that...</description>
			<content:encoded><![CDATA[<div>The file /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_frequency reads a value of 800 Mhz . The powertop tool also suggested that 800 Mhz w3as the minimum frequency being used . I changed the above-mentioned file to 1.6 GHz and monitored powertop tool again . To my surprise, it still said that the minimum frequency was 800 MHz instead of 1.6 GHz</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>vishwamitra</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123891-how-do-i-change-minimum-working-frequency.html</guid>
		</item>
		<item>
			<title>Multi-platform Centralized Patch Management</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123874-multi-platform-centralized-patch-management-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 17:10:45 GMT</pubDate>
			<description>We have a mix of AIX, HP-UX, Linux (RHEL and SLES), and Solaris in our environment.  Currently we have seperate patch management systems for each platform (NIM, SD, Spacewalk, etc), but have started looking for a centralized patch management solution that would work for most, if not all, of our...</description>
			<content:encoded><![CDATA[<div>We have a mix of AIX, HP-UX, Linux (RHEL and SLES), and Solaris in our environment.  Currently we have seperate patch management systems for each platform (NIM, SD, Spacewalk, etc), but have started looking for a centralized patch management solution that would work for most, if not all, of our installed platforms.  We've looked at Configuresoft SUM and some tools from Quest, but aren't thrilled to have to stand up Windows servers to do this.<br />
<br />
Has anyone else tried to tackle something of this scope?  What products did you use, and to what degree of success?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>kknigga</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123874-multi-platform-centralized-patch-management.html</guid>
		</item>
		<item>
			<title>I need to know more about Syslog</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123864-i-need-know-more-about-syslog-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 14:03:08 GMT</pubDate>
			<description><![CDATA[I'll be writing a program that makes use of Syslog.  From what I've read, you can send Syslog messages from 1 computer to another.  How is this done?  I know it makes use of UDP and uses port 514.  Does anyone know of an example command to send from Computer A to Computer B? 
 
 
A little bit more...]]></description>
			<content:encoded><![CDATA[<div>I'll be writing a program that makes use of Syslog.  From what I've read, you can send Syslog messages from 1 computer to another.  How is this done?  I know it makes use of UDP and uses port 514.  Does anyone know of an example command to send from Computer A to Computer B?<br />
<br />
<br />
A little bit more info about the project.  It will be done in C++.  If you know of any libraries to make use of, please let me know.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>mrwatkin</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123864-i-need-know-more-about-syslog.html</guid>
		</item>
		<item>
			<title><![CDATA[Access to particular IP's from the solaris/LINUX server]]></title>
			<link>http://www.unix.com/unix-advanced-expert-users/123835-access-particular-ips-solaris-linux-server-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 09:45:08 GMT</pubDate>
			<description><![CDATA[Hi All, 
I have a scenario here where in I need to allow a user from the server(Solaris or LINUX) to be able to ssh to a particular set of IP's. 
Eg:user1 should be able to access IP's 10.26.32.2,10.26.32.7,10.26.32.9 
     user2 should be able to access IP's 10.1.1.2,10.1.1.4(just an example)  
...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I have a scenario here where in I need to allow a user from the server(Solaris or LINUX) to be able to ssh to a particular set of IP's.<br />
Eg:user1 should be able to access IP's 10.26.32.2,10.26.32.7,10.26.32.9<br />
     user2 should be able to access IP's 10.1.1.2,10.1.1.4(just an example) <br />
<br />
So I need to create the users such that they are able to access only these IP's.If they try to ssh to any other IP's they should not be able to do so.<br />
<br />
Please let me know if we can do so and if yes how to do the same.<br />
<br />
Thanks in Advance...</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>pk123</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123835-access-particular-ips-solaris-linux-server.html</guid>
		</item>
		<item>
			<title>Better KSH commands</title>
			<link>http://www.unix.com/unix-advanced-expert-users/123832-better-ksh-commands-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 08:48:00 GMT</pubDate>
			<description><![CDATA[Are there any documents available for checking the execution time taken by ksh commands? 
  
My requirement is to fine tune a set of shell scripts having lot of "echos" and "date"s.  
Is there a better replacement for the below code?.  
 
Code: 
--------- 
  
echo "ABC process started on `date`"...]]></description>
			<content:encoded><![CDATA[<div>Are there any documents available for checking the execution time taken by ksh commands?<br />
 <br />
My requirement is to fine tune a set of shell scripts having lot of &quot;echos&quot; and &quot;date&quot;s. <br />
Is there a better replacement for the below code?. <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"> <br />
echo &quot;ABC process started on `date`&quot;<br />
some code..<br />
echo &quot;ABC process ended on `date`&quot;<br />
echo &quot;BAC process started on `date`&quot;<br />
some code<br />
echo &quot;BAC process ended on `date`&quot;<br />
.......................<br />
.......................<br />
Thus it goes on...</code><hr />
</div>These lines with very less difference is repeated more than 3000 times in my shell script.Please post any method by which I can reduce the execution time.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-advanced-expert-users/"><![CDATA[UNIX for Advanced & Expert Users]]></category>
			<dc:creator>engineer</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-advanced-expert-users/123832-better-ksh-commands.html</guid>
		</item>
	</channel>
</rss>
