Re: Unsetting an environment variable from a program

From: Generic Usenet Account (usenet_at_sta.samsung.com)
Date: 10/12/05


Date: 12 Oct 2005 07:38:19 -0700

I have posted the source code previously
(http://groups.google.com/group/comp.sources.d/browse_frm/thread/02c07fe92da10c27/96d3e494ea83c159#96d3e494ea83c159)

The only update that I have made is to the script. Here's the updated
script:

##############################################
#!/bin/ksh
#
# $1: Filename
# $2: Linenumber
# $3: Process id
# $4: Parent process id
# $5: Page Size

if [ "$#" != "0" ]
then
  echo "File: $1, Line: $2"
  echo "Page size is $5"
  ps -elf | head -1; ps -elf | grep -w $3 | grep -w $4 | grep -vw $0
  echo "\n\n"
fi

Thanks,
Bhat