<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The serctl script has problems on a standard
Solaris 8 Install:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># serctl ul add 1000 sip:1000@10.10.10.10<BR>grep:
illegal option -- E<BR>Usage: grep -hblcnsviw pattern file . .
.<BR>sip:1000@10.10.10.10 is not a valid URI<BR># <BR></DIV></FONT>
<DIV><FONT face=Arial size=2>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:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>check_uri()
{<BR># echo "$1" | grep -E
"^sip:([a-zA-Z0-9_]+@)?.*\..*"<BR>
echo "$1" | /usr/xpg4/bin/grep -E "^sip:([a-zA-Z0-9_]+@)?.*\..*"<BR></DIV>
<DIV>and it seems to be working ok.</DIV>
<DIV> </DIV>
<DIV>Just though other Solaris users might want to know.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Ricardo<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>