<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>nixCraft &#187; shell scripts</title> <atom:link href="http://www.cyberciti.biz/tips/tag/shell-scripts/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 03 Feb 2012 22:45:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>10 Tools To Add Some Spice To Your UNIX Shell Scripts</title><link>http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html</link> <comments>http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html#comments</comments> <pubDate>Mon, 19 Apr 2010 20:47:43 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/dev/tcp/host/port]]></category> <category><![CDATA[/dev/udp/host/port]]></category> <category><![CDATA[Bash /dev/tcp/host/port example]]></category> <category><![CDATA[Bash /dev/udp/host/port example]]></category> <category><![CDATA[Bash Network Programming]]></category> <category><![CDATA[Bash Socket Programming]]></category> <category><![CDATA[gnome desktops]]></category> <category><![CDATA[interactive unix]]></category> <category><![CDATA[kdialog Command]]></category> <category><![CDATA[logger command]]></category> <category><![CDATA[network socket]]></category> <category><![CDATA[notify-send Command]]></category> <category><![CDATA[setleds Command]]></category> <category><![CDATA[setterm Command]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[smbclient command]]></category> <category><![CDATA[tput Command]]></category> <category><![CDATA[zenity Command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=6787</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">T</span>here are some misconceptions that shell scripts are only for a CLI environment. You can easily use various tools to write GUI and/or network (socket) scripts under KDE or Gnome desktops. Shell scripts can make use of some of the GUI widget (menus, warning boxs, progress bars etc). You can always control the final output, cursor position on screen, various output effects, and so on. With the following tools you can build powerful, interactive, user friendly UNIX / Linux bash shell scripts.]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html/feed</wfw:commentRss> <slash:comments>83</slash:comments> </item> <item><title>FAQ Updates &#8211; Nov/13/2010</title><link>http://www.cyberciti.biz/tips/faq-updates-nov132010.html</link> <comments>http://www.cyberciti.biz/tips/faq-updates-nov132010.html#comments</comments> <pubDate>Fri, 13 Nov 2009 12:58:17 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[FAQ]]></category> <category><![CDATA[bash scripts]]></category> <category><![CDATA[bind 9]]></category> <category><![CDATA[command echo]]></category> <category><![CDATA[echo command]]></category> <category><![CDATA[echo usage]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[google apps]]></category> <category><![CDATA[linux network]]></category> <category><![CDATA[mac os x]]></category> <category><![CDATA[mount nfs]]></category> <category><![CDATA[nas server]]></category> <category><![CDATA[network ip]]></category> <category><![CDATA[nfs client]]></category> <category><![CDATA[running processes]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[spam messages]]></category> <category><![CDATA[tcp udp]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=7436</guid> <description><![CDATA[Our FAQ section is updated in last few days with new howtos:<ul><li><a
href="http://www.cyberciti.biz/faq/linux-configuring-ip-traffic-accounting/">Linux Network IP Accounting</a> - I need to know how much data are transmitted on my ppp0 network or eth0 Internet links? How do I set IP accounting by address such as 123.1.2.3 and 123.1.2.4? How do I set IP accounting per Apache virtual domain? How do I set accounting by service port (http, smtp) and protocol (tcp, udp, icmp)? How do I record how much traffic each of the clients computer is using?</li><li><a
href="http://www.cyberciti.biz/faq/unix-linux-dns-lookup-command/">Linux / UNIX: DNS Lookup Command</a> - How do I perform dns lookup under Linux or UNIX or OS X operating systems without using 3rd party web sites for troubleshooting DNS usage?</li><li><a
href="http://www.cyberciti.biz/faq/what-process-has-open-linux-port/">Linux: Find Out Which Process Is Listening Upon a Port</a> - How do I find out running processes were associated with each open port? How do I find out what process has open tcp port 111 or udp port 7000 under Linux?</li><li><a
href="http://www.cyberciti.biz/faq/bind-named-djbdns-google-apps-sender-policy-framework/">Google Apps Domain Create SPF Records For BIND or Djbdns</a> - I work for a small business and outsourced our email hosting to Google. However, I noticed that spammers are using our From: First Last to send their spam messages. All bounced messages come to our catch only account. How do I stop this? How do I validate our domain using SPF? How do I configure a SPF for Google Apps domain using BIND 9 or djbdns? <a
href="http://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/">Mac Os X: Mount NFS Share / Set an NFS Client</a> - How do I access my enterprise NAS server by mounting NFS filesystem onto my Mac OS X based system using GUI and command line based tools?</li><li><a
href="http://www.cyberciti.biz/faq/bash-localization-with-echo-command/">Explains: echo Command (echo $”string”) Double-quoted String Preceded By a Dollar Sign</a> - I noticed that many shell scripts in /etc/init.d/ directory use the following syntax - echo $"Usage $prog start&#124;stop&#124;reload&#124;restart". Why a double-quoted string preceded by a dollar sign ($”string”) using the echo command under Linux / UNIX bash scripts?</li><li>Get intimated about our new howtos / faqs as soon as it is released via <a
href="http://www.cyberciti.biz/faq/feed/rss/?k=1">RSS feed</a>.</li></ul>]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/faq-updates-nov132010.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How To Write Object-Oriented Shell scripts For Multiple Platforms</title><link>http://www.cyberciti.biz/tips/squirrel-portable-shell-and-scripting-language.html</link> <comments>http://www.cyberciti.biz/tips/squirrel-portable-shell-and-scripting-language.html#comments</comments> <pubDate>Mon, 19 Jan 2009 06:42:27 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[Sys admin]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[cross platform]]></category> <category><![CDATA[linux mac]]></category> <category><![CDATA[mac os x]]></category> <category><![CDATA[memory bandwidth]]></category> <category><![CDATA[oo programming language]]></category> <category><![CDATA[scripting language]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[squirrel]]></category> <category><![CDATA[unix linux]]></category> <category><![CDATA[video games]]></category> <category><![CDATA[windows systems]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4559</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> This may come handy while writing cross-platform scripts.<br
/><br
/> If you don't want to commit to the idiosyncrasies of a specific shell running on a particular platform, try the Squirrel Shell. The Squirrel Shell provides an advanced, object-oriented scripting language that works equally well on UNIX, Linux, Mac OS X, and Windows systems. Write a script once, and run it anywhere.<br
/><br
/> Squirrel is a high level imperative/OO programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games. <br
/><br
/> => <a
href="www.cyberciti.biz/rss.redirect.php?u=http://www.ibm.com/developerworks/aix/library/au-spunix_squirrel/index.html">Speaking UNIX: The Squirrel portable shell and scripting language</a>]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/squirrel-portable-shell-and-scripting-language.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>cvlc: Console VLC Player</title><link>http://www.cyberciti.biz/tips/cvlc-console-vlc-player.html</link> <comments>http://www.cyberciti.biz/tips/cvlc-console-vlc-player.html#comments</comments> <pubDate>Wed, 28 May 2008 10:28:26 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Linux desktop]]></category> <category><![CDATA[Linux Multimedia]]></category> <category><![CDATA[cvlc]]></category> <category><![CDATA[interface]]></category> <category><![CDATA[mp3]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[vlc]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4162</guid> <description><![CDATA[Use 'cvlc' to use vlc without interface. This is useful for command line playing or ripping using shell scripts.]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/cvlc-console-vlc-player.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Debian / Ubuntu Package Troubleshooting: subprocess post-removal script returned error exit status xx</title><link>http://www.cyberciti.biz/tips/troubleshooting-debian-ubuntu-package-upgrades-removals.html</link> <comments>http://www.cyberciti.biz/tips/troubleshooting-debian-ubuntu-package-upgrades-removals.html#comments</comments> <pubDate>Sun, 11 May 2008 19:47:29 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Debian Linux]]></category> <category><![CDATA[GNU/Open source]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[package management]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Ubuntu Linux]]></category> <category><![CDATA[apt-get command]]></category> <category><![CDATA[deb]]></category> <category><![CDATA[dpkg command]]></category> <category><![CDATA[exit status]]></category> <category><![CDATA[reading database]]></category> <category><![CDATA[script error]]></category> <category><![CDATA[shell script]]></category> <category><![CDATA[shell scripts]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=2280</guid> <description><![CDATA[A quick way to fix  shell post / pre execution scripts package problem under Debian / Ubuntu Linux.]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/troubleshooting-debian-ubuntu-package-upgrades-removals.html/feed</wfw:commentRss> <slash:comments>21</slash:comments> </item> <item><title>Linux / UNIX Bash: Copy Set of Files to All Users Home Directory</title><link>http://www.cyberciti.biz/tips/linux-unix-shell-batch-copy.html</link> <comments>http://www.cyberciti.biz/tips/linux-unix-shell-batch-copy.html#comments</comments> <pubDate>Thu, 03 Jan 2008 14:49:41 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/shadow]]></category> <category><![CDATA[batch copy]]></category> <category><![CDATA[chown]]></category> <category><![CDATA[chroot jail]]></category> <category><![CDATA[copy multipe files]]></category> <category><![CDATA[correct permissions]]></category> <category><![CDATA[existing users]]></category> <category><![CDATA[group id]]></category> <category><![CDATA[home directory]]></category> <category><![CDATA[loop command]]></category> <category><![CDATA[multiple files]]></category> <category><![CDATA[outer loop]]></category> <category><![CDATA[password account]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[security check]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[single file]]></category> <category><![CDATA[user names]]></category> <category><![CDATA[wild card]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-unix-shell-batch-copy.html</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">I</span>f you would like to copy a set of files for all existing users, use the following scripting trick. It will save lots of manual work.]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/linux-unix-shell-batch-copy.html/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>How to: Run All Shell / Perl / Python Scripts in a Directory</title><link>http://www.cyberciti.biz/tips/running-all-unix-linux-scripts-in-directory.html</link> <comments>http://www.cyberciti.biz/tips/running-all-unix-linux-scripts-in-directory.html#comments</comments> <pubDate>Fri, 12 Oct 2007 07:35:17 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[Sys admin]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[for loop]]></category> <category><![CDATA[perl scripts]]></category> <category><![CDATA[python scripts]]></category> <category><![CDATA[run-parts_command]]></category> <category><![CDATA[shell scripts]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/running-all-unix-linux-scripts-in-directory.html</guid> <description><![CDATA[I've directory called /home/vivek/scripts/daily with over 25 perl / shell / python scripts for managing daily tasks. One day for some weird reason my crond died and I did not noticed the incident for 2 days. Now crond is started and I'd like to run all those scripts. Here is a quick for loop running [...]]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/running-all-unix-linux-scripts-in-directory.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Linux / UNIX: Python programming tutorial for system administrators</title><link>http://www.cyberciti.biz/tips/linux-unix-python-tutorial.html</link> <comments>http://www.cyberciti.biz/tips/linux-unix-python-tutorial.html#comments</comments> <pubDate>Thu, 06 Sep 2007 13:14:17 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Beyond nixCraft]]></category> <category><![CDATA[Howto]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Sys admin]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[object oriented programming]]></category> <category><![CDATA[object oriented programming language]]></category> <category><![CDATA[python]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[system administration]]></category> <category><![CDATA[system administrators]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-unix-python-tutorial.html</guid> <description><![CDATA[Generally I use Perl and Shell script for automation or to make system administration easier for me. Python is an interpreted, interactive, object-oriented programming language that combines remarkable power with very clear syntax. Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. You can easily adopt Python to [...]]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/linux-unix-python-tutorial.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Getting Yesterdays or Tomorrows Day With Bash Shell Date Command</title><link>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html</link> <comments>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html#comments</comments> <pubDate>Sun, 17 Jun 2007 18:28:04 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[add date linux terminal]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[current date]]></category> <category><![CDATA[date - 1 + unix]]></category> <category><![CDATA[date command]]></category> <category><![CDATA[date formats]]></category> <category><![CDATA[date in linux shell]]></category> <category><![CDATA[date time]]></category> <category><![CDATA[day after tomorrow]]></category> <category><![CDATA[day time]]></category> <category><![CDATA[fortnight]]></category> <category><![CDATA[gnu]]></category> <category><![CDATA[human readable format]]></category> <category><![CDATA[job]]></category> <category><![CDATA[language problem]]></category> <category><![CDATA[linux date add]]></category> <category><![CDATA[linux tomorrow date]]></category> <category><![CDATA[perl script]]></category> <category><![CDATA[perl scripts]]></category> <category><![CDATA[relative time]]></category> <category><![CDATA[scripts]]></category> <category><![CDATA[shell date]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[six months]]></category> <category><![CDATA[syntax]]></category> <category><![CDATA[time of day]]></category> <category><![CDATA[time zone]]></category> <category><![CDATA[tomorrow tomorrow]]></category> <category><![CDATA[unix date future date plus days]]></category> <category><![CDATA[unix get one previous day]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/getting-yesterdays-or-tomorrows-day-with-shell-date-command.html</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">W</span>hen invoked without arguments, the date command displays the current date and time.  Depending on the options specified, date will set the date and time or print it in a user defined way. I've seen many sysadmin writing perl scripts for calculating relative date such as yesterdays or tomorrows day. You can use GNU date command, which is designed to handle relative date calculation such as:<ul><li>1 Year</li><li>2 Days</li><li>2 Days ago</li><li>5 Years</li></ul>]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html/feed</wfw:commentRss> <slash:comments>42</slash:comments> </item> <item><title>Read UNIX / Linux System IP Address In a Shell Script</title><link>http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html</link> <comments>http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html#comments</comments> <pubDate>Mon, 16 Jan 2006 22:27:00 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[awk]]></category> <category><![CDATA[awk command]]></category> <category><![CDATA[bash script]]></category> <category><![CDATA[grep command]]></category> <category><![CDATA[ifconfig command]]></category> <category><![CDATA[inet addr]]></category> <category><![CDATA[linux system]]></category> <category><![CDATA[network interface]]></category> <category><![CDATA[pipeline]]></category> <category><![CDATA[shell script]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[solaris unix]]></category> <category><![CDATA[stdin]]></category> <category><![CDATA[stdout]]></category> <category><![CDATA[streams]]></category> <category><![CDATA[sun oracle]]></category> <category><![CDATA[unix linux]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div><div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">R</span>eading an IP address in shell script required many time. However, different Linux distribution stores IP address in different files. If you are looking to run script under different UNIX like OSes such as Solaris or FreeBSD then you need to use the ifconfig command. The ifconfig command is not just used to configure a network interface, but it can be use to obtained information such as network IP, netmask and much more. ]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html/feed</wfw:commentRss> <slash:comments>25</slash:comments> </item> </channel> </rss>
