![]() |
sponsored links |
|
|
sponsored links
|
|
|
4
21st June 01:37
External User
Posts: 1
|
According to Rich Greenberg in a posting to comp.lang.rexx:
Yes - use the ADDRESS ... WITH instruction which should be in the Regina docs (it's an extension mandated by the ANSI committee and thus found in the standards do***ent, but it isn't widely implemented; Regina does have it, however). As far as I know it's the preferred way. -- ---- Ian Collier : imc@comlab.ox.ac.uk : WWW page (including REXX section): ------ http://users.comlab.ox.ac.uk/ian.collier/imc.shtml New to this group? Answers to frequently-asked questions can be had from http://rexx.hursley.ibm.com/rexx/ . |
|
|
5
21st June 01:37
External User
Posts: 1
|
% Whats the best way to run a unix command and get access to the output
% (stdout) of the command. In addition to using `address with', you could use the rxqueue command, as in 'cmd | /usr/local/bin/rxqueue &' you can then pull the data off the queue, as you might be used to. The advantage of this is that if you manage to pull it off properly, your command could be running in the background as you process its output. It does require some set-up, and Regina has a tendency to handle rxqueue internally, and I believe it redirects the output to a file in the process, so you need to be careful (in this case, I've typed the full path to the command) (which then fails for me because I haven't got the queue server running). I have a library which provides functions to read to and write from the standard input, output, and error of Unix commands. It's not needed for most purposes now that `address with' is here, but I still use it in cases when I want to process the output of a command while the command is running. http://www.interlog.com/~ptjm/#rexxfile -- Patrick TJ McPhee East York Canada ptjm@interlog.com |
|
|
7
21st June 01:38
External User
Posts: 1
|
In <s7WQb.27713$Wa.6544@news-server.bigpond.net.au>, on 01/25/2004
at 09:00 PM, "Anthony Borla" <ajborla@bigpond.com> said: From the wording of his question, he's probably aware of all of that. Presumably the OUTPUT option of ADDRESS does what he wants. -- Shmuel (Seymour J.) Metz, SysProg and JOAT Unsolicited bulk E-mail will be subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org |
|
|
8
21st June 01:38
External User
Posts: 1
|
In <bv18cr$8qs$1@online.de>, on 01/25/2004
at 09:19 PM, Florian Große-Coosmann <florian@grosse-coosmann.germany> said: Will that work if you've set a default value for the stem, or do you have to use, e.g., ADDRESS COMMAND "ls" WITH OUTPUT STEM 'OUT.' -- Shmuel (Seymour J.) Metz, SysProg and JOAT Unsolicited bulk E-mail will be subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org |
|
|
9
29th June 03:01
External User
Posts: 1
|
A short while ago I became aware that Shmuel (Seymour J.) Metz had
According to the standard, the token after the word STEM is taken literally. In fact, the standard doesn't even allow you to put quotes round it. (As you know, the token after the word ADDRESS is also taken literally, though you may put quotes round it if you wish.) -- ---- Ian Collier : imc@comlab.ox.ac.uk : WWW page (including REXX section): ------ http://users.comlab.ox.ac.uk/ian.collier/imc.shtml New to this group? Answers to frequently-asked questions can be had from http://rexx.hursley.ibm.com/rexx/ . |
|