Dave,
> Is there a way to suppress the socket aceserver's
> Please enter userid:
> Please enter passwd:
> handshake? In the old aceserver I could connect via simple shell scripts
> directly. Now, even though I've set the database to "READ WORLD" in
> wspec/serverconfig.wrm, the prompt still comes up. If I try to include
> appropriate responses in the script, e.g.
>> /usr/local/bin/saceclient ceres.plbr.cornell.edu -port 2000 <<EOF
> anonymous
> guest
> EOF
>> the result is
>> Please enter userid: anonymous
> FATAL ERROR - (user, machine & program version not available) in file sclient.c, at line 67: Unable to get terminal attributes for input of password.
>> If I connect through saceclient interactively, I can enter anything as the
> userid and just hit Return for the passwd.
I modelled the interactions on programs like ftp which for simplicity require
you to enter some sort of userid/passwd even if they are basically dummies. I am
happy to add code to saceclient to allow the userid/passwd to be specified on
the command line using "-userid your_userid -passwd your_passwd". I saw Tims
fix to the code which I will check and add to our source code, but I think the
command line options is a cleaner solution.
> I see that this can be done through AcePerl (and it takes a lot of code to
> do it, in SocketServer.pm) but I'd like to be able to have more direct
> access.
OK, I'm a little confused here, all clients must supply a userid and userid +
passwd hash when connecting, I assumed that AcePerl was talking directly to the
socket server, not via saceclient...that was one of the major points of moving
to sockets. I'm not sure what the "takes a lot of code" is about ??
Does anyone have any comments about this ?
cheers Ed
------------------------------------------------------------------------
| Ed Griffiths, Acedb development, Informatics Group, |
| The Sanger Centre, Wellcome Trust Genome Campus, |
| Hinxton, Cambridge CB10 1SA, UK |
| |
| email: edgrif at sanger.ac.uk Tel: +44-1223-494780 Fax: +44-1223-494919 |
------------------------------------------------------------------------