[ic] Naming bin/interchange to something else
Stefan Hornburg
interchange-users@icdevgroup.org
Thu Dec 26 16:58:01 2002
On Thu, 26 Dec 2002 23:38:10 +0200
"Rene Hertell" <interchange-users@hertell.com> wrote:
> Hi,
>
> Does the name of VENDROOT/bin/interchange have to be "interchange"? The
> reason why I'm asking is that I'm running a few versions of IC, and I need
> to check if some of the processes has failed (with ps -lx... etc.)
Adjust MV_DOLLAR_ZERO to your needs:
# Set $0 to something pretty for ps(1).
# Won't work on Solaris and IRIX among possibly others.
# Dumps core on FreeBSD 4 stock Perl build.
if (defined $Global::Variable->{MV_DOLLAR_ZERO}) {
if ($Global::Variable->{MV_DOLLAR_ZERO}) {
if (length($Global::Variable->{MV_DOLLAR_ZERO}) > 1) {
$0 = $Global::Variable->{MV_DOLLAR_ZERO};
}
else {
$0 = "interchange --> $Global::VendRoot";
}
}
# do nothing if MV_DOLLAR_ZERO is defined but false
}
else {
$0 = 'interchange';
}
Ciao
Racke