[teiid-issues] [JBoss JIRA] Commented: (TEIID-1355) adminshell.bat cannot read script from stdin

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Thu Nov 11 12:15:01 EST 2010


    [ https://jira.jboss.org/browse/TEIID-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562889#action_12562889 ] 

Ramesh Reddy commented on TEIID-1355:
-------------------------------------

I am not sure what you us do here, escaping is OS dependent. Executing the single statement is the behaviour of the Groovy shell. If you want you can add your script to a file then execute

adminshell.bat load file.groovy



> adminshell.bat cannot read script from stdin
> --------------------------------------------
>
>                 Key: TEIID-1355
>                 URL: https://jira.jboss.org/browse/TEIID-1355
>             Project: Teiid
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 7.1
>         Environment: windows
>            Reporter: Aleksandar Kostadinov
>
> On windows adminshell doesn't read script if supplied on stdin. It looks like it is reading from terminal (unlike adminshell on linux). I see that one can supply expression as first argument to adminshell but it seems to accept only a single expression and additionally complex expressions are a hell to escape properly.
> Assuming adminshell is intended to be used for automating administrative tasks, it needs a straightforward way to execute scripts non-interactively so current behavior on windows needs to be fixed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list