AminetAminet
Search:
83856 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/rexx/rkr_rexx.lzh

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:A handful of very useful scripts (1.0)
Author:rkr at olib.org
Uploader:Aminet Upload Problems olib org
Type:util/rexx
Architecture:m68k-amigaos
Date:1995-04-16
Download:http://aminet.net/util/rexx/rkr_rexx.lzh - View contents
Readme:http://aminet.net/util/rexx/rkr_rexx.readme
Downloads:300

These six ARexx scripts have proven to be of great use, to me.	They are
primarily to be used as functions from other ARexx scripts:
    COMMAND( CMD )
	Executes a command, CMD, and return the output.  The command output
	is run through a PIPE: stream.	(NOTE: If the program generates no
	output, COMMAND() can get stuck.)
	    say compress( command( 'list rexx:command.rexx' ), 'ex' )
	    ==>
	    Dirctory "r:" on Tusday 11-Apr-95
	    command.r		      431 ----rwd 29-Jan-95 03:51:58
	    1 fil - 2 blocks usd

    GETENV( VAR )
	Retrieves a given ENV: VAR for you.
	    say getenv( 'user' )                ==> rkr

    GETFILE( FILE )
	Reads the contents of a FILE.
	    say getfile( 'env:user' )           ==> rkr

    PUTFILE( CONTENTS, FILE )
	Stores CONTENTS into a FILE.
	    say putfile( 'test', 'ram:test' )   ==> test

    REPLACE( SRC, OLD, NEW )
	Scans SRC and changes all OLD with NEW.  The result string is
	returned.
	    say replace( 'abc', 'b', 'bb' )     ==> abbc

    SETENV( CONTENTS, VAR, ENVARC )
	Stores CONTENTS into the ENV: var, VAR.  If you pass a 1 in for
	ENVARC, it also writes the data to the ENVARC: copy of the VAR.
	    say setenv( 'rkr', 'user', 1 )      ==> rkr

These 6 recur enough that it seems silly to rewrite them in every script I
write, but not so often/centrally that it's worth taking the time to create
a proper .library for them.

I'm posting them seperately as I hope to shortly release a set of archives,
somewhat independant, but all of them hinging, to one degree or another, on
these six scripts for occasional support.  Who knows, you might even find
your OWN uses for them.  (^&


Contents of util/rexx/rkr_rexx.lzh
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  321     527  60.9% -lh1- f54b Feb 12  1995 command.rexx
[generic]                  265     357  74.2% -lh1- bf73 Feb 12  1995 getenv.rexx
[generic]                  202     319  63.3% -lh1- 6b11 Feb 12  1995 getfile.rexx
[generic]                  181     258  70.2% -lh1- 261c Feb 12  1995 putfile.rexx
[generic]                  342     529  64.7% -lh1- 21ad Jan 15  1995 replace.rexx
[generic]                  368     564  65.2% -lh1- 678e Feb 12  1995 setenv.rexx
[generic]                 1027    1762  58.3% -lh1- d5f4 Apr 11  1995 rkr_rexx.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         7 files    2706    4316  62.7%            Apr 16  1995

Aminet © 1992-2022 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>