Exit status of process by PID Hi, I need to know the exit status of process by PID in KSH. example: sleep 100 & PID=$! I want to know exit status by this number $PID Thanks ... 10 May 2010 03:21
NETWORK MARKETING NETWORK MARKETING ****-------------------------------------------- http://sites.google.com/site/projecttrackingsoftware ************* http://sites.google.com/site/networkmarkettings ************** http://sites.google.com/site/spywareantiviruses ... 9 May 2010 02:29
size of a directory I need to get the size of a directory with several sub-directories. Each sub-directory may also have sub-directories. How to do it? Thanks. ... 11 May 2010 01:22
sed replacing space/(s) with a tab in one place only I have a data file that leads off with a number( after the last digit in the number there are spaces than has some unique string, which include spaces. Ie 10<space><space>Jane<space> A.<apace> Doe 15<space><space>John<space>Q.<space>Public Is there a sed command I can run that can convert the space/(s) a... 7 May 2010 17:50
Purge file keep some backup copy Hi All I am trying purge file again. This time base on file have backup copy only. Suppose moonhk is script file without extension and moonhkt.p is program name. Create file file purging. touch moonhkt.p touch -t 201005011234 moonhkt.p.20100501_1234icm touch -t 201004281222 moonhkt.p.20100428_1222icm tou... 7 May 2010 12:15
Is it because of race condition? declare -a timevect timelist=`cat "$LOGFILE"` timevect=($timelist) sumt=0 for cnt in ${timevect[@]:0} do sumt=$(echo "scale=12; $sumt+$cnt" | bc) done while calculating the sum of all integers in the LOGFILE I am getting (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: p... 7 May 2010 04:33
tar/pkunzip question between two machine Hi All I create *.zip or *.tar on Machine A by my id for *.p, *.i , *.ksh, * . Then Migration Team using their ID, using ftp to get the zip or tar file. The scripe file mode in Machine A is -rwxr-xr-x , when tar -xvf or pkzinzip, in Machine B changed to -rw-r--r-- In Machine B, the umask is 012. How to ke... 12 May 2010 02:39
Case insensitive searching in gvim Hi, Anyone knows what is the commnd I should add in .vimrc for making case insensitive searches. (: set ic command, but how to make this default?) Thanks gvim baby ... 7 May 2010 01:19
replacing / with - in bash I am writing a bash script that needs to convert a directory name that is several levels deep to another directory name with no subdirectories. To do that, I will change all the slashes to dashes. Is there a simple way to do this in bash? Thanks. In other words, I need to replace slash with dash in bash. It just ... 7 May 2010 07:49 |