interfasys
Verified User
I don't know shell scripting, but I'm trying to finish the Urchin Howto.
This:
can return:
-1
Now I'm trying to detect the case where it's -1 in order to call an alternate script.
Whatever I try, -1 is never detected...
Things like :
etc.
If you have the solution, it would be appreciated.
This:
Code:
#!/bin/sh
URCHINPATH="/usr/local/urchin"
GETPARAM=`$URCHINPATH/util/uconf-driver action=get_parameter table=user name="$username" parameter=cs_rlist`
echo $GETPARAM
can return:
-1
Now I'm trying to detect the case where it's -1 in order to call an alternate script.
Whatever I try, -1 is never detected...
Things like :
Code:
if ["$GETPARAM" == "-1"]
then
If you have the solution, it would be appreciated.