BTEQ - interactive vs. batch mode - ssh access to windows workstation
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


BTEQ - interactive vs. batch mode - ssh... Expand / Collapse
Author
Message
Posted 6/27/2008 4:59:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/2/2008 5:26:55 AM
Posts: 3, Visits: 13
Hello everyone,

I experience a little bit strange bteq behaviour in my a little bit strange environment. Maybe someone will have some tips.

On a Win XP workstation I've got TTU 12.0. BTEQ works fine locally.

Then I installed Cygwin and started cygwin sshd (ssh daemon) in order to be able to work remotely on this PC.

When I locally start cygwin shell window (bash), bteq works well too. But when I access the shell remotely via ssh, when I start bteq with no command line parameters, no redirections, just bare bteq command, it starts in batch mode instead of interactive mode: it only accepts .LOGON in form .logon tdpid/user,passwd, doesn't display standard interactive bteq banner, complains after pressing backspace (*** Warning: Invalid character, decimal value =127).

I suppose bteq recognizes internally whether it is run interactively or in batch mode by inspecting in some way where the standard input comes from and it gets confused by some redirections used by ssh layer.

Has anyone had the same problem? Is there any solution? Any ideas? Is it a bug or just an unsupported way of operating bteq?

Thank you
Jacek Adamowicz
Post #11986
Posted 6/27/2008 8:23:02 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/25/2008 1:20:39 PM
Posts: 91, Visits: 119
Don't forget that cygwin is a linux emulator. The bteq for windows is compiled to run interactivley if no logon is provided. I find that providing the login in a file and use the .run file command works best when doing the cygwin/bteq dance.
Post #11987
Posted 6/27/2008 8:42:05 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/2/2008 5:26:55 AM
Posts: 3, Visits: 13
Well, I am able to run scripts, but working interactively is also a useful thing sometimes, isnt't it?

Jacek
Post #11989
Posted 6/27/2008 8:52:22 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/25/2008 1:20:39 PM
Posts: 91, Visits: 119
Yes - but you can't open a Windows window from cygwin. So, the interactive logon never appears.
Post #11990
Posted 6/27/2008 9:03:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/2/2008 5:26:55 AM
Posts: 3, Visits: 13
I'm not talking about bteqwin but normal command line bteq (for windows). It doesn't show a windows dialog box, it enters conversation mode in command line. If you run cmd.exe in windows and type bteq you'll see something like below. After "Password:" bteq stops and waits for password. The problem is that bteq if run via cygwin ssh "thinks" that it is run in batch mode while I want it to be interactive.

[font=Courier New]Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>bteq

Teradata BTEQ 12.00.00.00 for WIN32.
Copyright 1984-2007, NCR Corporation. ALL RIGHTS RESERVED.
Enter your logon or BTEQ command:
.logon tdjad/jaceka

.logon tdjad/jaceka
Password:

*** Logon successfully completed.
*** Teradata Database Release is 12.00.00.10
*** Teradata Database Version is 12.00.00.10
*** Transaction Semantics are BTET.
*** Character Set Name is 'ASCII'.

*** Total elapsed time was 1 second.

BTEQ -- Enter your DBC/SQL request or BTEQ command:[/font]
Post #11991
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:50pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 8 queries. Compression Disabled.