<?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>nixCraft Linux / UNIX / Shell Scripting Forum</title>
		<link>http://nixcraft.com/</link>
		<description>It is the place to ask Linux/ UNIX questions and get real answers from experienced Linux admins. Share knowledge, Help others!</description>
		<language>en</language>
		<lastBuildDate>Wed, 22 May 2013 02:30:53 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://nixcraft.com/images/misc/rss.png</url>
			<title>nixCraft Linux / UNIX / Shell Scripting Forum</title>
			<link>http://nixcraft.com/</link>
		</image>
		<item>
			<title>Some Rules getting disabled after some hours in</title>
			<link>http://nixcraft.com/networking-firewalls-security/19731-some-rules-getting-disabled-after-some-hours.html</link>
			<pubDate>Tue, 21 May 2013 08:34:58 GMT</pubDate>
			<description>Hello i have  issue with my iptables. in iptables some rules automaticall get disabled or not working. and rules also not shows any entry for  that...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello i have  issue with my iptables. in iptables some rules automaticall get disabled or not working. and rules also not shows any entry for  that rules iptables -nvL.<br />
while at the same time all other rules are working perfect. after restarting iptables services all workes perfect.<br />
Kindly please help me.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/networking-firewalls-security/">Networking, Firewalls and Security</category>
			<dc:creator>chintan.ghantiwala</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/networking-firewalls-security/19731-some-rules-getting-disabled-after-some-hours.html</guid>
		</item>
		<item>
			<title>Syntax error near token unexpected token `</title>
			<link>http://nixcraft.com/shell-scripting/19728-syntax-error-near-token-unexpected-token.html</link>
			<pubDate>Tue, 21 May 2013 01:45:56 GMT</pubDate>
			<description>I am new to scripting and hardly use it and urgently need to finish some build script. The below script works perfectly fine on my mac 10.8.x, but...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->I am new to scripting and hardly use it and urgently need to finish some build script. The below script works perfectly fine on my mac 10.8.x, but throws an error when executed over any other mac 10.6.x/10.8.x. Please help me resolve this issue.<br />
<br />
Thanks.<br />
<br />
The script basically is to build projects using Xcode.<br />
<font color="#008400"><span style="font-family: Menlo"><br />
#! /bin/sh</span></font><br />
<font color="#D12F1B"><span style="font-family: Menlo"><font color="#000000">XCODEBUILD=</font>&quot;/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild&quot;</span></font><br />
<span style="font-family: Menlo"><br />
</span><br />
<font color="#008400"><span style="font-family: Menlo">#################################### SubRoutines ##################################################  ############</span></font><br />
<font color="#008400"><span style="font-family: Menlo"># Utility to print the messages</span></font><br />
<span style="font-family: Menlo"><br />
</span><br />
<span style="font-family: Menlo">PrintLog()</span><br />
<span style="font-family: Menlo">{ </span><br />
<span style="font-family: Menlo">    _Log=$<font color="#272ad8">1</font></span><br />
<font color="#008400"><span style="font-family: Menlo"><font color="#000000">   echo </font>###############</span></font><br />
<span style="font-family: Menlo">   echo <font color="#d12f1b">&quot;$_Log&quot;</font></span><br />
<font color="#008400"><span style="font-family: Menlo"><font color="#000000">   echo </font>###############</span></font><br />
<span style="font-family: Menlo">}</span><br />
<span style="font-family: Menlo"><br />
</span><br />
<font color="#008400"><span style="font-family: Menlo">##################################################  ##################</span></font><br />
<span style="font-family: Menlo"><br />
</span><br />
<font color="#D12F1B"><span style="font-family: Menlo"><font color="#000000">platformBaseDir=</font>`( cd ../.. ; pwd )`</span></font><br />
<span style="font-family: Menlo">cd $platformBaseDir</span><br />
<font color="#D12F1B"><span style="font-family: Menlo"><font color="#000000">PrintLog </font>&quot;platformBaseDir is : $platformBaseDir&quot;</span></font><br />
<br />
<br />
This throws an error - <br />
line 12: Syntax error near token unexpected token `<br />
line 12: `PrintLog.<br />
<br />
Why does it not throw any error in my 10.8.x, while it never works on any other 10.6.x/10.8.x?<br />
I have tried using _Log = &quot;$1&quot;, shebang is included too. I searched the web and this forum too and could not fix it. <br />
<br />
Please help.<br />
<br />
Thanks.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/shell-scripting/">Shell scripting</category>
			<dc:creator>SindhuGururaj</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/shell-scripting/19728-syntax-error-near-token-unexpected-token.html</guid>
		</item>
		<item>
			<title>Postfix :receieve is ok , send : No route to host error</title>
			<link>http://nixcraft.com/mail-servers/19716-postfix-receieve-ok-send-no-route-host-error.html</link>
			<pubDate>Sun, 19 May 2013 08:51:48 GMT</pubDate>
			<description>Hi,  
 
I build a mail server , I used postfix ,Centos 5.5 
 
I can receive emails normaly from any mail server 
 
I can send to local accounts  
...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hi, <br />
<br />
I build a mail server , I used postfix ,Centos 5.5<br />
<br />
I can receive emails normaly from any mail server<br />
<br />
I can send to local accounts <br />
<br />
but when sending to public mail servers like hotmail or gmail I receive : <b>No route to host</b><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/mail-servers/">Mail Servers</category>
			<dc:creator>asdamha</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/mail-servers/19716-postfix-receieve-ok-send-no-route-host-error.html</guid>
		</item>
		<item>
			<title>Wireless (WiFi) Network Congestion Issues</title>
			<link>http://nixcraft.com/computer-networking-internet-broadband/19714-wireless-wifi-network-congestion-issues.html</link>
			<pubDate>Sun, 19 May 2013 02:48:27 GMT</pubDate>
			<description><![CDATA[Not sure if I post in the right category, sorry if not. 
 
A bit of a complex situation, let's see if I can get it all down... 
Network: 
ZyXEL...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Not sure if I post in the right category, sorry if not.<br />
<br />
A bit of a complex situation, let's see if I can get it all down...<br />
Network:<br />
ZyXEL router, model P-2601HN-F1<br />
A Netgear wifi extenders, model WN2000RPT <br />
A Netgear wifi extenders, model WN2000RPTv2 *<br />
A mini &quot;NAS&quot;, it calls itself STORAGE-0689, I don't know much about it but it's the size of a matchbox and has a network port and a USB port. Connected by cord to the router.<br />
A 1TB USB disk (FAT) connected to the above.<br />
A Cubie Board with Raspbian (the distribution that seems to work best for me). Connected by cord to the WN2000RPT.<br />
A 1TB SATA disk (NTFS) connected to the above.<br />
A Win 7 notebook with wifi connected to the WN2000RPTv2. *<br />
A Win 7 stationary PC connected by cord to the WN2000RPT.<br />
<br />
* the behaviour is the same when those are turned off.<br />
<br />
Tests made with TeraCopy:<br />
I was getting transfer speeds of max 5MB/s when copying files to both the &quot;NAS&quot; and the Cubie Board.<br />
So I checked the router and it was set to use wifi b/g mode and WPA-PSK/TKIP.<br />
I changed to b/g/n and WPA2-PSK/AES (router+extenders) hoping to get better speeds, but insted it dropped!<br />
Now I have max 3MB/s to the &quot;NAS&quot; and max 256KB/s(!) to the Cubie Board.<br />
<br />
Any ideas?<br />
<br />
Edit: I had the router set to use 20/40MHz and tried changing to 20MHz without any change of network performance.<br />
Edit 2: I noticed that I get packages dropped, about 1/sec, with or without a ongoing copy; I've tried three different cables. Copying _from_ the Cubie Board goes at 8MB/s.<br />
<br />
/Mats<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/computer-networking-internet-broadband/">Computer Networking and Internet/broadband</category>
			<dc:creator>mohsart</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/computer-networking-internet-broadband/19714-wireless-wifi-network-congestion-issues.html</guid>
		</item>
		<item>
			<title>Nginx server load goes up and unable to keep videos starting/seeking reliably</title>
			<link>http://nixcraft.com/web-servers/19713-nginx-server-load-goes-up-unable-keep-videos-starting-seeking-reliably.html</link>
			<pubDate>Sun, 19 May 2013 01:18:48 GMT</pubDate>
			<description>Hello, 
 
A friend of mine has a medium-sized video storage site which gets over  650K daily streams, but he is struggling to keep videos...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello,<br />
<br />
A friend of mine has a medium-sized video storage site which gets over  650K daily streams, but he is struggling to keep videos starting/seeking reliably. The site primarily serves large (200MB+) videos and each video typically will have many simultaneous streams - sometimes 500+. <br />
 sometimes it can take 30 seconds or longer to start a video. I've tweaked as much as I can on the kernel and nginx, I just wanted to share the configuration here to see if there is anything further I can do to improve the site.<br />
<br />
services are on dedicated servers, 1gbps unlimited<br />
quad core: E3-1220 V2 @ 3.10GHz<br />
SATA disks with software raid 1<br />
16GB RAM<br />
<br />
nginx config<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">worker_processes&nbsp; 2;<br />
<br />
worker_rlimit_nofile 60240;<br />
worker_rlimit_sigpending 32768;<br />
error_log&nbsp; logs/error.log&nbsp; info;<br />
<br />
events {<br />
&nbsp; &nbsp; worker_connections&nbsp; 4096;<br />
}<br />
&nbsp; &nbsp; tcp_nopush&nbsp; &nbsp;  on;<br />
<br />
&nbsp; &nbsp; client_body_buffer_size 1K;<br />
&nbsp; &nbsp; client_header_buffer_size 1k;<br />
&nbsp; &nbsp; client_max_body_size 1k;<br />
&nbsp; &nbsp; large_client_header_buffers 2 1k;<br />
&nbsp; &nbsp; client_body_timeout&nbsp;  10;<br />
&nbsp; &nbsp; client_header_timeout 10;<br />
&nbsp; &nbsp; keepalive_timeout&nbsp; &nbsp;  5 5;<br />
&nbsp; &nbsp; send_timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10;<br />
<br />
&nbsp; &nbsp; gzip&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  on;<br />
&nbsp; &nbsp; gzip_comp_level&nbsp; 2;<br />
&nbsp; &nbsp; gzip_min_length&nbsp; 1000;<br />
&nbsp; &nbsp; gzip_proxied&nbsp; &nbsp;  expired no-cache no-store private auth;<br />
&nbsp; &nbsp; gzip_types&nbsp; &nbsp; &nbsp;  text/plain application/xml;<br />
&nbsp; &nbsp; gzip_disable&nbsp; &nbsp;  &quot;MSIE [1-6]\.&quot;;<br />
&nbsp; &nbsp; limit_conn_zone $binary_remote_addr zone=addr:10m;<br />
&nbsp; &nbsp; perl_modules&nbsp; perl;<br />
&nbsp; &nbsp; perl_require&nbsp; xvs_download.pm;<br />
&nbsp; &nbsp; include sites/*.conf;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br />
in the sites/ there is an additional config <br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; server {<br />
&nbsp; &nbsp; &nbsp; &nbsp; listen&nbsp; &nbsp; &nbsp;  8777;<br />
&nbsp; &nbsp; &nbsp; &nbsp; server_name&nbsp; fs1.local.local;<br />
&nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; keepalive_timeout&nbsp; &nbsp;  5 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; location / {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  root&nbsp; &nbsp; &nbsp; &nbsp;  /var/www/htdocs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  access_log&nbsp;  off;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; location ~* &quot;^/(\w{48,})/&quot; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perl&nbsp; xvs_download::handler;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # MP4 video<br />
&nbsp; &nbsp; &nbsp; &nbsp; location /download/ {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; internal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alias /var/www/cgi-bin/uploads/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_conn addr 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_rate_after 1m;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_rate 180k;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  output_buffers 1 1m;<br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br />
Any assistance would be much appreciated.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/web-servers/">Web servers</category>
			<dc:creator>ananth_ak</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/web-servers/19713-nginx-server-load-goes-up-unable-keep-videos-starting-seeking-reliably.html</guid>
		</item>
		<item>
			<title>LDAP error:::Invalid credentials (49)</title>
			<link>http://nixcraft.com/centos-rhel-fedora/19708-ldap-error-invalid-credentials-49-a.html</link>
			<pubDate>Sat, 18 May 2013 08:18:20 GMT</pubDate>
			<description>Dear all, 
 
 
I have installed openldap in my system (CentOS 5.9).. 
 
 
While adding an user in .ldif file and entered the password it is showing...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Dear all,<br />
<br />
<br />
I have installed openldap in my system (CentOS 5.9)..<br />
<br />
<br />
While adding an user in .ldif file and entered the password it is showing as the error <b><font color="#ff0000">Enter LDAP Password: <br />
ldap_bind: Invalid credentials (49)</font><br />
.<br />
<br />
<br />
</b><br />
please suggest....<br />
<br />
<br />
<br />
<br />
<font color="#0000ff">#vim /etc/openldap/slap.conf</font><br />
<br />
database        bdb<br />
suffix          &quot;dc=unotechtest,dc=com&quot;<br />
rootdn          &quot;cn=admin,dc=unotechtest,dc=com&quot;<br />
# Cleartext passwords, especially for the rootdn, should<br />
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.<br />
# Use of strong authentication encouraged.<br />
# rootpw                secret<br />
 rootpw         {SSHA}UpKdzwM4uocKMefZjJ+cnu/+91W3xAeL<br />
<br />
<br />
<font color="#008000">[root@localhost openldap]# ldapsearch -x -b 'dc=unotechtest,dc=com' '(objectclass=*)'</font><br />
# extended LDIF<br />
#<br />
# LDAPv3<br />
# base &lt;dc=unotechtest,dc=com&gt; with scope subtree<br />
# filter: (objectclass=*)<br />
# requesting: ALL<br />
#<br />
<br />
# search result<br />
search: 2<br />
result: 32 No such object<br />
<br />
# numResponses: 1<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>yasin007</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19708-ldap-error-invalid-credentials-49-a.html</guid>
		</item>
		<item>
			<title>Need some assistance with creating an incremental backup/disaster strategy</title>
			<link>http://nixcraft.com/backup-recovery/19702-need-some-assistance-creating-incremental-backup-disaster-strategy.html</link>
			<pubDate>Thu, 16 May 2013 16:37:11 GMT</pubDate>
			<description>Hi guys, 
 
I need a little help with developing a reliable backup protocol and disaster strategy. 
 
I have recently taken a position with a...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hi guys,<br />
<br />
I need a little help with developing a reliable backup protocol and disaster strategy.<br />
<br />
I have recently taken a position with a start-up company, as web developer (Drupal site). However I am now in charge of <b>all</b> IT-related matters lol.<br />
My predecessors (students who quickly built a 'functioning site') have not configured the server (CentOS VPS) in any way...nothing....I even had to deal with a server take-over in my first week as there were no security measures set up and all passwords were changed (including root) - luckily the first thing I did was set up SSH keys!<br />
<br />
Anyway, I need to develop a reliable backup/recovery system. Please note that this is a start-up with very limited funding and only one VPS. I have purchased an additional 'backup drive' with our hosting provider that I can access via NFS and mounted to '/mnt/backup'<br />
I need to backup the usual stuff on the VPS (www, configs, etc.).<br />
<br />
I have so far come up with the following:<br />
- backup to '/backup/snapshots' using <b>rsnapshot</b> (6 hourly | 7 daily | 4 weekly | 3 monthly)<br />
- <b>upcp</b> (cPanel) backup to '/backup/cpanel'<br />
- <b>tar -cavPf</b> /mnt/backup/$(date '+&amp;#37;A').tar /backup --overwrite (to create a daily archive of the entire backup directory and move it to the 'backup drive')<br />
- rsync (over SSH) the /mnt/backup/$(date '+%A').tar archive of that day, to my local machine<br />
- ....finally (once we can afford a NAS) rsync the /mnt/backup/$(date '+%A').tar each day to the FreeNAS (with RAID)<br />
<br />
<b>EDIT: </b>I have rsnapshot backing up the following directories (/etc , /home , /root , /usr , /var )<br />
<br />
Does anybody foresee any issues with this configuration?<br />
I realise that this is not a bare metal/image copy but with out limited resources it is the best I could come up with.<br />
<br />
One thing I am concerned about is the overall size of the '/backup' directory and each daily archive stored under '/mnt/backup' .<br />
At the minute <u>just one</u> rsnapshot backup takes <b>5.6GB.<br />
</b>With the setup I have planned we will end up with each daily archive being:<br />
<br />
5.6GB x 6 (hourly) [+ incremental changes] = 33.6GB<br />
+<br />
5.6GB x 7 (daily) [+ incremental changes] = 39.2GB<br />
+<br />
5.6GB x 4 (weekly) [+ incremental changes] = 22.4GB<br />
+<br />
5.6GB x 3 (monthly) [+ incremental changes] = 16.8GB<br />
<br />
Which will total <b>112GB </b>per archive of just rsnapshot backups (and there will be an archive for each day = 784GB !)<br />
<br />
......................<br />
<br />
1. Should I do away with the daily tar backup to '/mnt/backup' and simply use rsnapshot to output backups to both /backup and /mnt/backup?<br />
<br />
2. Is there any way to configure rsnapshot to use (for example) hourly.0 as the base and every hourly.# after that be<b>only </b>an increment, instead of creating a base for each schedule backup (ie hourly.0-5)<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/backup-recovery/">Backup And Recovery</category>
			<dc:creator>s2s-admin</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/backup-recovery/19702-need-some-assistance-creating-incremental-backup-disaster-strategy.html</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Nginx - default.conf missing]]></title>
			<link>http://nixcraft.com/centos-rhel-fedora/19701-nginx-default-conf-missing.html</link>
			<pubDate>Thu, 16 May 2013 10:58:34 GMT</pubDate>
			<description>Hai to all, 
 
I have installed Nginx , i am not able to see /etc/nginx/conf.d/default.conf  but i can see /etc/nginx/nginx.conf.. 
 
Note : There...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hai to all,<br />
<br />
I have installed Nginx , i am not able to see /etc/nginx/conf.d/default.conf  but i can see /etc/nginx/nginx.conf..<br />
<br />
Note : There was no error came during installation..<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>yasin007</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19701-nginx-default-conf-missing.html</guid>
		</item>
		<item>
			<title>ls -l with additional info</title>
			<link>http://nixcraft.com/shell-scripting/19700-ls-l-additional-info.html</link>
			<pubDate>Wed, 15 May 2013 14:06:58 GMT</pubDate>
			<description>Hi. 
 
I want to execute ls -l command from script and then add some extra info (could be /var/test).  
 
Example: -rw-r--r-- 1 operus tdoper 2071143...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hi.<br />
<br />
I want to execute ls -l command from script and then add some extra info (could be /var/test). <br />
<br />
<span style="font-family: r_ansi"><font size="2"><span style="font-family: r_ansi"><font size="2">Example: -rw-r--r-- 1 operus tdoper 2071143 maj 14 10:19 abc.txt /var/test<br />
-rw-r--r-- 1 operus tdoper 2083145 maj 14 10:19 def.txt /var/test<br />
-rw-r--r-- 1 operus tdoper 2087645 maj 14 10:19 ghi.txt /var/test<br />
<br />
Any easy ways to do this? ;)<br />
<br />
MrDude<br />
</font></span></font></span><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/shell-scripting/">Shell scripting</category>
			<dc:creator>MrDude</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/shell-scripting/19700-ls-l-additional-info.html</guid>
		</item>
		<item>
			<title>Linux command to show current directory via $PWD or pwd</title>
			<link>http://nixcraft.com/shell-scripting/19699-linux-command-show-current-directory-via-pwd-pwd.html</link>
			<pubDate>Tue, 14 May 2013 22:39:37 GMT</pubDate>
			<description>Hey, 
 
THis is forcing me to ask a basic and silly question - if both $PWD and pwd point to same location to show current dir on Linux. Which one is...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hey,<br />
<br />
THis is forcing me to ask a basic and silly question - if both $PWD and pwd point to same location to show current dir on Linux. Which one is recommended? Say<br />
<code style="background-color: rgb(222, 227, 231); padding: 0.2px; margin: 0.1em; display: inline-block;"><kbd>old=`pwd`</kbd></code><br />
OR<br />
<code style="background-color: rgb(222, 227, 231); padding: 0.2px; margin: 0.1em; display: inline-block;"><kbd>old=&quot;$PWD&quot;</kbd></code><br />
<br />
Are they same speed wise?<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/shell-scripting/">Shell scripting</category>
			<dc:creator>chinalinix</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/shell-scripting/19699-linux-command-show-current-directory-via-pwd-pwd.html</guid>
		</item>
		<item>
			<title>Execute a condition if and only if the previous one was successful</title>
			<link>http://nixcraft.com/shell-scripting/19698-execute-condition-if-only-if-previous-one-successful.html</link>
			<pubDate>Tue, 14 May 2013 17:35:14 GMT</pubDate>
			<description>hello 
 
i have a script with two conditions ( two different if conditions) : condition1 checks if a fileA exists and  
does unique sorting etc....</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->hello<br />
<br />
i have a script with two conditions ( two different if conditions) : condition1 checks if a fileA exists and <br />
does unique sorting etc. based on this condition-2 extracts a given column and copies to another file. <br />
<br />
is there a way to control the executuion of two conditions .. ie.start condiiton2 if condition1 has <br />
completed successfully else exit from the script.<br />
<br />
thanks<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/shell-scripting/">Shell scripting</category>
			<dc:creator>sbk785</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/shell-scripting/19698-execute-condition-if-only-if-previous-one-successful.html</guid>
		</item>
		<item>
			<title>what is use of free command in linux?</title>
			<link>http://nixcraft.com/centos-rhel-fedora/19697-what-use-free-command-linux.html</link>
			<pubDate>Tue, 14 May 2013 16:52:11 GMT</pubDate>
			<description>use of free command in linux.</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->use of free command in linux.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>saravana572</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19697-what-use-free-command-linux.html</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] How to find server name of the Linux?]]></title>
			<link>http://nixcraft.com/centos-rhel-fedora/19696-how-find-server-name-linux.html</link>
			<pubDate>Tue, 14 May 2013 16:50:02 GMT</pubDate>
			<description>how to find server name of linux box</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->how to find server name of linux box<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>saravana572</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19696-how-find-server-name-linux.html</guid>
		</item>
		<item>
			<title>difference between df and du?</title>
			<link>http://nixcraft.com/centos-rhel-fedora/19695-difference-between-df-du.html</link>
			<pubDate>Tue, 14 May 2013 16:48:25 GMT</pubDate>
			<description>main difference between df and du.</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->main difference between df and du.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>saravana572</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19695-difference-between-df-du.html</guid>
		</item>
		<item>
			<title>how to find process running other than root user?</title>
			<link>http://nixcraft.com/centos-rhel-fedora/19694-how-find-process-running-other-than-root-user.html</link>
			<pubDate>Tue, 14 May 2013 16:43:59 GMT</pubDate>
			<description>how to find the process other than root user in linux.</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->how to find the process other than root user in linux.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/centos-rhel-fedora/">CentOS / RHEL / Fedora</category>
			<dc:creator>saravana572</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/centos-rhel-fedora/19694-how-find-process-running-other-than-root-user.html</guid>
		</item>
	</channel>
</rss>
