• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another question - not build related - SystemStarter related
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another question - not build related - SystemStarter related


  • Subject: Re: Another question - not build related - SystemStarter related
  • From: Art Isbell <email@hidden>
  • Date: Fri, 15 Aug 2003 16:05:41 -1000

On Friday, August 15, 2003, at 03:35  PM, Robert A. Decker wrote:

I
got past that problem, but hit another that I can't solver. I'm now
getting the error:
Stopping WebObjects services
/usr/bin/awk: syntax error at source line 2
 context is
        NF>3 {if ( $3 ==11282 >>>
 <<<
/usr/bin/awk: illegal statement at source line 2
StopPID:kill:2: illegal pid: 11282\n11283

I can run the following similar shell script successfully in a sh (bash) shell but I get the same syntax error when run under zsh which is the shell specified in the WebObjects startup script:


[~]% sh
sh-2.05a$ PIDS=`ps -jaxwwwww | grep 'sh' | grep -v grep | awk '{print $2}'`
sh-2.05a$ for parent in $PIDS
> {
> CHILDPIDS=`ps -jaxwwwww | awk 'NF>3 {if ( $3 == '"$parent"' ) print $2}'`
> echo $parent $CHILDPIDS
> }
313 342
384
483 544
544 569
555
485


	So in the WebObjects startup script, you might try changing

#!/bin/zsh

to

#!/bin/sh

Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Another question - not build related - SystemStarter related (From: "Robert A. Decker" <email@hidden>)

  • Prev by Date: Another question - not build related - SystemStarter related
  • Next by Date: Re: only get my partial build when specifying DSTROOT?
  • Previous by thread: Another question - not build related - SystemStarter related
  • Next by thread: Re: TCPMonitor - only for D2WebServices?
  • Index(es):
    • Date
    • Thread