You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Richard \"Trey\" Hyde (JIRA)" <ji...@apache.org> on 2008/07/09 18:51:32 UTC

[jira] Commented: (SOLR-623) snapcleaner fails on osx for -D

    [ https://issues.apache.org/jira/browse/SOLR-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612185#action_12612185 ] 

Richard "Trey" Hyde commented on SOLR-623:
------------------------------------------

Here is a patch:

$ p4 diff ...
==== //depot/centraldesktop.com/feature/solr/search/home/bin/snapcleaner#1 - /Users/trey/solr.home/bin/snapcleaner ====
94c94,99
<     syncing=`ps -fwwwu ${user}|grep -w rsync|grep -v grep|grep -w $1`
---
>     if [[ "${OS}" == "Darwin" ]]
>     then
>         syncing=`ps -www -U ${user} |grep -w rsync|grep -v grep|grep -w $1`
>     else
>       syncing=`ps -fwwwu ${user}|grep -w rsync|grep -v grep|grep -w $1`
>     fi

> snapcleaner fails on osx for -D
> -------------------------------
>
>                 Key: SOLR-623
>                 URL: https://issues.apache.org/jira/browse/SOLR-623
>             Project: Solr
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 1.2, 1.3
>         Environment:  9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 i386
>            Reporter: Richard "Trey" Hyde
>            Priority: Critical
>             Fix For: 1.3
>
>
> {quote}
> removing snapshot /Users/trey/solr.home/data/snapshot.20080701175730
> ps: illegal option -- f
> usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
>           [-u]
>           [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
>        ps [-L]
> {quote}
> MacOSX does not support the -f option to show all the command line arguments.  This is the default behavior for ps (on OSX, but can be supressed with -c).
> It also doesn't much like -wwwu $user.  Wants -www -U $user. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.