[teiid-issues] [JBoss JIRA] Commented: (TEIID-1355) adminshell.bat cannot read script from stdin
Aleksandar Kostadinov (JIRA)
jira-events at lists.jboss.org
Tue Nov 16 12:11:45 EST 2010
[ https://jira.jboss.org/browse/TEIID-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563653#comment-12563653 ]
Aleksandar Kostadinov commented on TEIID-1355:
----------------------------------------------
On linux if you pass a script to stdin of the the adminshell process it gets executed.
echo "println 'hello'" | adminshell.sh
Of course more complicated scripts are also possible. Given it is possible to load a file then the critical functionality is present but it just feels inflexible to be unable to write "adminshell.bat < myscript.groovy" or "type myscript1.groovy myscript2.groovy | adminshell.bat".
Anyways if it is not hart to make reading a script from stdin work, then I think it is a good idea to fix that. Otherwise executing a script file non-interactively may just be documented.
Thanks!
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the teiid-issues
mailing list