-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to escape and pass quoted parameters in zowex #978
Comments
Possible workaround: use variable to pass --data unfortunately this does not work when the command is passed in node exec child_process. fbeyl@pvslt03 ~ $ cmd=""ex (panel) 'PARM'" "fbeyl@pvslt03 ~ $ zowex zos-tso send address-space $sko --data $cmd Originally posted by @fbeyl in #974 (comment) |
I think this is a bug - I was able to reproduce this problem. |
hi @fbeyl - how did you escape? if i have a clist (
It runs with: On zowe cli, I can run it without escaping:
On zowex with git bash, I can escape:
In windows command prompt I escape this way I know neither escape is desirable, I'm just trying to determine if I'm debugging the same error or not and if one of these escape approaches "works" for you in the meantime. |
I don't know what I have been doing ... escaping works fine ... Sorry for the inconvenience. fbeyl@pvslt03 ~ $ zowex tso issue command ""ex 'Z40275.CLIST(PANEL)' 'PARM'"" [ fbeyl@pvslt03 ~ $ sko=$(zowex zos-tso start address-space --zosmf-profile "tutosys" --sko); ... |
OK - hopefully we can make it work without the need to escape 😄 |
hi @fbeyl - I'm not sure I'll bee able to easily get beyond the need to escape. Since we have a workaround, if it's ok with you, I'll close this and await more input. We can reopen if escaping is too problematic for most users. Is this ok? |
Yes please close the issue. Got it working: sdsfServerS.mp4 |
this is awesome - thank you for sharing the recording! have you considered submitting what you've done as a blog on medium.com/zowe? it's a neat way to showcase what can be done with zowe and might spark other ideas i'll close this in the meantime - take care |
@dkelosky Just put it on [https://frans-beyl.medium.com/] but don't know how to add it to medium.com/zowe |
cool 😄 @Joe-Winchester - is there a community resource that describes how to submit articles to medium.com/zowe |
The Zowe doc site has details on how to submit blogs, I always forget which chapter but everything is indexed and searchable so typing "Medium blog" in the bar brings up the link to the page https://docs.zowe.org/stable/getting-started/zowe-resources.html#blogs You can also create an issue in the OMP repo and choose "Create a medium.com/zowe" blog |
Submitted to publication. |
OK got that up and running, thx.
Got an issue with zowex now see hereafter, do I open new issue or continue in this one?
With zowe:
fbeyl@pvslt03 ~ $ iplrest=$(zowe zos-tso send address-space $sko --data "ex (panel) 'PARM'")
fbeyl@pvslt03 ~ $ echo $iplrest
[ { "DSNAME":"VENDOR.PARMLIB" , "SEQ":"1" , "VOLSER":"VPMVSD" , "BLKSIZE":"6160" , "EXTENT":"1" , "SMS":"NO" , "LRECL":"80" , "DSORG":"PO" , "RECFM":"FB" , "CRDATE":"2003.119" , "REFDATE":"2021.071" , "SYSNAME":"S0W1" , "SYSLEVEL":"z/OS 02.03.00 HBB77B0" } , { "DSNAME":"SVTSC.PARMLIB" , "SEQ":"2" , "VOLSER":"VTMVSG" , "BLKSIZE":"6160" , "EXTENT":"1" , "SMS":"NO" , "LRECL":"80" , "DSORG":"PO" , "RECFM":"FB" , "CRDATE":"1997.118" , "REFDATE":"2017.300" , "SYSNAME":"S0W1" , "SYSLEVEL":"z/OS 02.03.00 HBB77B0" } , { "DSNAME":"LVL0.PARMLIB" , "SEQ":"3" , "VOLSER":"VTLVL0" , "BLKSIZE":"6160" , "EXTENT":"7" , "SMS":"NO" , "LRECL":"80" , "DSORG":"PO" , "RECFM":"FB" , "CRDATE":"2007.025" , "REFDATE":"2021.035" , "SYSNAME":"S0W1" , "SYSLEVEL":"z/OS 02.03.00 HBB77B0" } , { "DSNAME":"SYS1.PARMLIB" , "SEQ":"4" , "VOLSER":"VIMVSB" , "BLKSIZE":"27920" , "EXTENT":"1" , "SMS":"NO" , "LRECL":"80" , "DSORG":"PO" , "RECFM":"FB" , "CRDATE":"2017.116" , "REFDATE":"2021.035" , "SYSNAME":"S0W1" , "SYSLEVEL":"z/OS 02.03.00 HBB77B0" } ] READY
With zowex:
fbeyl@pvslt03 ~ $ iplrest=$(zowex zos-tso send address-space $sko --data "ex (panel) 'PARM'")
Command Error:
Onbekende argumenten: (panel), 'PARM'
Command failed due to improper syntax
Command entered: "zowe zos-tso send address-space Z40275-137-aackaaah --data ex (panel) 'PARM' --dcd /home/fbeyl/"
Available commands are "address-space".
Use "zowe zos-tso send --help" to view groups, commands, and options.
Error Details:
Onbekende argumenten: (panel), 'PARM'
Tried escaping but till now no luck.
Zowex should leave " in the command because it has to be sent to tso session.
Originally posted by @fbeyl in #974 (comment)
The text was updated successfully, but these errors were encountered: