dbTalk Databases Forums  

Automated login failure - possible line noise?

comp.databases.pick comp.databases.pick


Discuss Automated login failure - possible line noise? in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard M
 
Posts: n/a

Default Automated login failure - possible line noise? - 03-02-2011 , 03:18 PM






This is on D3 running AIX.
Is there a way to inhibit line noise to ensure a successful logon 1st
time?

I have an automated execute to a D3 application from an external
source.
The call is made to D3 from the Unix shell, and the problem I'm seeing
at random intervals is that the process will never start because it
does not login automatically (falls over with the 'Invalid user or
password' message).
This is the command string I am running:-
d3 -n pick0 -s -d "<AccountToLoginTo>\r<PickProgramToExecute>

I could band-aid this with a simple retry script to parse for `Invalid
user or password` in the standard output, but if there is a way to fix
this in D3 itself, I'd rather do that.

Reply With Quote
  #2  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: Automated login failure - possible line noise? - 03-02-2011 , 03:46 PM






Try leading with an extra \r to clear the buffer before you pass in
the user ID.

You might also want to look at d3tcl to execute programs like that.
You set your user/md and passwords in environment variables, so you
don't need to "script" the login.

T

Richard M wrote:

Quote:
This is on D3 running AIX.
Is there a way to inhibit line noise to ensure a successful logon 1st
time?

I have an automated execute to a D3 application from an external
source.
The call is made to D3 from the Unix shell, and the problem I'm seeing
at random intervals is that the process will never start because it
does not login automatically (falls over with the 'Invalid user or
password' message).
This is the command string I am running:-
d3 -n pick0 -s -d "<AccountToLoginTo>\r<PickProgramToExecute

I could band-aid this with a simple retry script to parse for `Invalid
user or password` in the standard output, but if there is a way to fix
this in D3 itself, I'd rather do that.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.