[Users] dbtext script problem

Ovidiu Sas sip.nslu at gmail.com
Thu Sep 28 14:37:11 CEST 2006


I just made a copy of the latest sc.dbtext in my home directory,
changed the x attribute on the file and run it:
$ ./sc.dbtext

./sc.dbtext 1.1 - $Revision: 1.17 $
parameter usage:
           * subscribers *
 add <username> <password> <email> .. add a new subscriber (*)
  passwd <username> <passwd> ......... change user's password (*)
 rm <username> ...................... delete a user (*)
 mail <username> .................... send an email to a user
  rpid add <username> <rpid> ......... add rpid for a user (*)
  rpid rm <username> ................. remove rpid for a user (*)
.....

It is working fine for me.
Which OS are you running?


sc.dbtext is providing dbtext tables manipulation.
openserctl is providing you extra functionality like fifo commands,
usrloc commands ...
You should have both installed on your system.


-ovi

On 9/27/06, Lindsey Hans Joseph Lao <llao at infoweapons.com> wrote:
> Hello Ovidiu,
>
> Upon downloading the sc.dbtext script from Openser CVS, I replaced the
> 'openserctl' file in '/usr/local/sbin/' directory since I noticed both
> share similarities in their codes. With sc.dbtext renamed as openserctl,
> I invoked the command openserctl dbtext and got the error:
> /usr/local/sbin/openserctl: 463: Syntax error: Bad substitution. Is this
> the correct procedure?
>
> Or do I just keep openserctl and copy the sc.dbtext file to the
> '/usr/local/sbin/'  directory. I was not able to create the tables since
> I immediately encountered the error mentioned above. Can you provide me
> details on how to make the sc.dbtext script work?
>
> Many thanks,
> Hans
>
>
> Ovidiu Sas wrote:
> > sc.dbtext provides a limited set of commands in order to manipulate
> > the dbtext files.
> > You will need both openserctl and sc.dbtext.
> >
> > Can you provide more details about the failure?
> > Have you been able to create the tables?
> >
> >
> >
> > -ovi
> >
> > Note: sc.dbtext works ok in 1.1 release.
> >
> >
> > On 9/27/06, Lindsey Hans Joseph Lao <llao at infoweapons.com> wrote:
> >> Hello,
> >>
> >> I have a problem with sc.dbtext script. I understand that it is used to
> >> create text file for dbtext to store information such as location,
> >> address, etc. I downloaded from Openser CVS the sc.dbtext script and
> >> replaced my current openserctl file with it. Unfortunately, it still
> >> failed to run:
> >>
> >> Here's the error:
> >> /usr/local/sbin/openserctl: 463: Syntax error: Bad substitution
> >>
> >> Does anyone have an idea on how to resolve this?
> >>
> >> Thank you.
> >> Hans




More information about the sr-users mailing list