Hi everyone,
I recently moved all of my DOCUMENTS (you know, the personal stuff that accumulates over the years, PDFs, text files, notes, etc...LOL) from my OS/2 box to the NAS. The NAS does not support EAs, and as expected all of my URL objects (the WPS object that you to double-click thus openning up your web browser) have now become simple text files on the NAS.
Alright, so I knew this was going to happen and now am trying to figure out a way to deal with it.
The NAS files that used to be the OS/2 URL objects are now a simply text file with the one-liner content being the URL itself. I figured that if I can read the contents of that file and pass that onto Firefox as a command line parameter that should in fact give me a "poor man's" replacement for the WPS UL object.
I need a little help in making that into a one-liner though. The alternative is of course to do up a small REXX script, but if I can parse the stuff as a one-lines, well, that's better since I can simply create the program object for it and convert that into my own DIY "OS/2 URL Object" solution.
So here is a scenario I'm looking at:
1) URL text file => 'CBC - URL'
2) content of the above text file
http://www.cbc.ca/news3) current DIY URL object CLI
g:\apps\tcipip\firefox\firefox.exe &head "cbc - url"
4) sample execution
The CLI produces the following, but the firefox window pops up on it's own and the URL is not passed to it
[V:\PUBLIC\DOCUMENTS\Dariusz]g:\apps\tcpip\firefox\firefox.exe &head "cbc - url"
http://www.cbc.ca/news
The idea here being that I can use the HEAD utility to simply pull that single line from the text file (which is the actual URL) and pass that onto Firefox as a CLI argument.
My problem is that testing this out I clearly do not have the right CLI definition, simply put the "&head" must feed INTO firefox.exe and I don't know how to do this in our OS/2 world.
I spent a little time going through various OS/2 help files but didn't spot anything that worked for me.
So can anyone give me the proper syntax for the CLI structure to pass an output of the 2nd command as input to the first command?
Thanks!