You are here

Open Object Rexx ooRexx

9 posts / 0 new
Last post
Terry
Offline
Last seen: 5 years 2 months ago
Joined: 2006-01-11 08:37
Open Object Rexx ooRexx

Open Object REXX (oorexx) has become my favored scripting language for system administration type operations. Since it is so powerful and useful, would it be possible to make it a portable application (for use on a flash drive or usb powered usb drive)?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Link

Need. Link.
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Lurking_Biohazard
Lurking_Biohazard's picture
Offline
Last seen: 6 years 1 month ago
Joined: 2006-02-18 18:06
I Googled it for you.

http://www.oorexx.org/
________
[ ~Lurk~ ]
¯¯¯¯¯¯¯¯
All about Instant Messaging -->BigBlueBall

~Lurk~

Terry
Offline
Last seen: 5 years 2 months ago
Joined: 2006-01-11 08:37
oorexx url

The link for oorexx is http://www.oorexx.org/

I see that someone already provided it to you. My apologies. REXX has been around so long and Object REXX from IBM being a premium product, that I (without thought) assumed that, when IBM let Object REXX become an open source product (Open Object REXX) guided by the Rexx Language Association http://www.rexxla.org/, everyone in the computer/scripting world knew about ooRexx. I will not make the mistake again.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
That's OK

Just happened to be on my PSP at the time which is a bother to type with so couldn't Google it.
Try the QuickPort NSIS Template or UniLaunch.
Check the program with RegMon and FileMon.
Get back to us.
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

jhaztine
Offline
Last seen: 17 years 7 months ago
Joined: 2007-02-10 23:18
new in rexx..(pls help)

Project Specification

• Using Gentee program, create a
“TRANSLATOR” that will translate the four
words (or tokens) that is saved in a text file to
the German and Spanish dialect.
• The text file, lets say “SOURCE.TXT” contains
the following words:
1. House
2. Rat
3. Heart
4. Cockroach

Can anyone Can Do this program? pls.. im new in Rexx.. that's why i need help..

tnx.

stone1343
stone1343's picture
Offline
Last seen: 4 years 2 months ago
Joined: 2006-09-25 12:45
What does this have to do with REXX?

First of all, what does it have to do with PortableApps? You should probably post this somewhere else. Second, if this is a school project, shouldn't you learn the programming language and do it yourself? Third, what does this have to do with REXX - the specification says use Gentee.

Anyway, here's how I'd do it in REXX:

/* */
parse arg token_file

english_tokens = ''

do while lines(token_file)
english_tokens = english_tokens linein(token_file)
end

do i = 1 to words(english_tokens)
english_token = translate(word(english_tokens, i))
select
when english_token = 'HOUSE' then do
say 'English: house'
say 'German: ein house'
say 'Spanish: la casa'
end
when english_token = 'RAT' then do
say 'English: rat'
say 'German: ein rat'
say 'Spanish: el rat'
end
when english_token = 'HEART' then do
say 'English: heart'
say 'German: ein heart'
say 'Spanish: el heart'
end
when english_token = 'COCKROACH' then do
say 'English: cockroach'
say 'German: ein cockroach'
say 'Spanish: la cucaracha'
end
otherwise do
say 'Unknown English token ignored:' english_token
end
end
say
end

exit

This program doesn't make any assumptions about:
- what order the tokens are in
- whether tokens are in lower case, mixed case or upper case
- whether the tokens are on one line, one token per line or something in between

and it ignores any tokens it doesn't know about

I'm sure there's more elegant ways to do this, but this seems like what you'd be looking for...

jhaztine
Offline
Last seen: 17 years 7 months ago
Joined: 2007-02-10 23:18
rexx

tnx for the info sir!!

stone1343
stone1343's picture
Offline
Last seen: 4 years 2 months ago
Joined: 2006-09-25 12:45
Replying to the original posting...

I did what I've seen suggested here before, install the program and copy the ooRexx directory as created by the install. It seems to work fine for my simple purposes. One obvious thing you have to take care of yourself is getting REXX.EXE in the path.

Topic locked