I am currently working on an application that is running "Sx4" code and looks very similar to expect. A very compressed version of expect that is. I am trying to find some documentation of this language, but have not had any luck. Anyone ever heard or used Sx4?
From the vendor I have very limited documentation of commands and variables. If possible I wanted to see if I could use a split command that was available and could be used on a variable, whereby giving me more than the two that they document. From what I understand there in an RFC that defines the specifications (which i have not been able to locate), where expect does not have an RFC. Thought I would do a post here and see what I could find.
You are talking about a split() type function that
is defined,offically, as returning the components on
either side of a delimiter?
Technically, I would say, if they don't have a multiple
element returning split, but the bare bones RFC compliant implementation(?), to use it in a loop advancing the read pointer equivalency to the second elements length till (readlen >= totallen), encapsulate it in a user function(they do have those right?), record all elements in a list and
return that.
split is tcl core specific however so, I guess you are just talking about syntax when you say it is like expect?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.