Christopher Browne cbbrowne
Wed Nov 15 08:55:03 PST 2006
Brian Wipf wrote:
> Just a small follow up. I have modified the launch_clusters.sh script  
> in my sandbox to be:
>
> FINDIT=`ps -p $SLONPID -wwo command= | grep slon`
>
> Not sure how universal this change is. It seems to do the right thing  
> on SUSE Linux 10.1 and Mac OS X 10.4.8. YMMV
>   
Doesn't fly on AIX...

But the following seems to work on various platforms...

FINDIT=`ps -p $SLONPID -o command= | grep slon`

That seems to be about right on:
a) Debian Linux (unstable) (command, comm both ok; command lists full
arguments)
b) Ubuntu (just like Debian)
c) AIX 5.3 (fine with command/comm; both show the same output...)
d) SuSE [something recent, mumble] (fine with comm/command; just like
Debian)
e) OS-X  (which dislikes -o comm=)
f) Fedora Core 5 (fine with comm/command; just like Debian)
g) FreeBSD 5.4 (fine with comm/command; just like Debian)

On Solaris, it needs "-o comm=" instead.  Grr.  So I can't just use "-o
command="

Joy, it's a portability case statement...

I'll be committing that momentarily.



More information about the Slony1-general mailing list