[Serusers] Serctl Command on Solaris 2.8

Ricardo Villa ricvil at epm.net.co
Wed May 28 01:12:43 CEST 2003


The serctl script has problems on a standard Solaris 8 Install:

# serctl ul add 1000 sip:1000 at 10.10.10.10
grep: illegal option -- E
Usage: grep -hblcnsviw pattern file . . .
sip:1000 at 10.10.10.10 is not a valid URI
# 

It turns out that the normal "grep" command on Solaris does not include the "-E" option.  You have to use  /usr/xpg4/bin/grep instead.  I modified the line:

check_uri() {
#       echo "$1" | grep -E "^sip:([a-zA-Z0-9_]+@)?.*\..*"
        echo "$1" |  /usr/xpg4/bin/grep -E "^sip:([a-zA-Z0-9_]+@)?.*\..*"

and it seems to be working ok.

Just though other Solaris users might want to know.

Regards,
Ricardo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030527/c9697c18/attachment.htm>


More information about the sr-users mailing list