Tag Archives: ksh

REPRINT: How to Write Scripts for Oracle Solaris with the Korn Shell

Original post: http://www.oracle.com/technetwork/articles/servers-storage-dev/kornshell-1523970.html?sc=APACOU12014452MPP001C017 REPRINT: How to Write Scripts for Oracle Solaris with the Korn Shell by Ken Gottry, originally published August 2001 The basics of creating, executing, testing, and launching scripts to control Oracle Solaris with a Korn shell.  Includes … Continue reading

Posted in Programming | Tagged , | Leave a comment

kill all – killing all the process of certain user under Solaris

This is a quick post on kill based on the trial and discussion when David, Daniel and myself were trying to kill all the abnormal process of Daniel under a Solaris 8 Ultra-80 server. The most tough thing was the … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Random in Shell

This post introduces the ‘$RANDOM’ in Shell including Ksh, Bash and Zsh and gives 2 examples using random processing in Shell. May it help:) 1. Number sequence random order generator # # Number sequence random order generator – nsrog # … Continue reading

Posted in Programming | Tagged , | Leave a comment

KSH coding standard – by Stephen Phil Hill

This post was originated by Stephen Phil Hill (Stephen.p.Hill@alcatel-lucent.com) on Oct 8, 2008. As an experienced developer in SU (software upgrade), Phil has spent years on writing KSH and TCL scripts. More ever, this KSH coding standard has been a … Continue reading

Posted in Programming | Tagged | 2 Comments

coverity modeling build automation tool – cmbat (one way to write multiple-choice menu via shell)

I have been responsible for Coverity tool integration/test/support in ALU LCP (Linux Control Platform) dept for nearly 2 years.  In this post, I would share a ksh tool/framework wrote on 2009 for Coverity modeling build automation. However, I would not … Continue reading

Posted in Dave's Tools | Tagged , , | Leave a comment

trap – signal handling in shell

Ways for shell to create ‘multi-thread’ scripts (用shell写多线程脚本) An enhancement for ‘tod‘(利用trap改进多线程shell脚本) Yes, the way to write ‘multi-thread’ for shell is using ‘&’ to submit background job. We will use ‘tod’ for example: In ‘tod’, there are in total 3 … Continue reading

Posted in Programming | Tagged , , , , , | 2 Comments

tcpdump on diskless – tod

Name: tod (无盘机器上的tcpdump) Language: KSH Destination: tcpdump on diskless Orignal Intention: Run tcpdump on diskless machine where memory space is highly restricted Version: 0.0 Supported Protocol: UDP/TCP/SCTP Supported OS: Linux/FreeBSD/Solaris Note: ‘root’ permission is preferred to avoid OS kernel error … Continue reading

Posted in Dave's Tools | Tagged , , , , | 86 Comments