Shell one-liner: Difference between revisions

→‎{{header|NetRexx}}: Use mktemp to get a "unique" temp. file name. Try to make sure it doesn't clobber existing files.
m (→‎{{header|NetRexx}}: identify process as using interpreter rather than translator)
(→‎{{header|NetRexx}}: Use mktemp to get a "unique" temp. file name. Try to make sure it doesn't clobber existing files.)
Line 218:
=={{header|NetRexx}}==
{{works with|UNIX Shell}}
Create a temporary file, execute the file via the NetRexx interpreter then delete the temporary file and theany files generated via the translation. (i.e. Java class filefiles etc.)
<lang bash>
$ TNRX=`mktemp T_XXXXXXXXXXXX` && test ! -e $TNRX.* && (echo 'say "Goodbye, World!"' >t.nrx$TNRX; nrc -exec t$TNRX; rm t.nrx$TNRX t$TNRX.class*; unset TNRX)
</lang>
 
Line 228:
Copyright (c) RexxLA, 2011,2012. All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program t.nrxT_dO7RQs5HPElq
===== Exec: tT_dO7RQs5HPElq =====
Goodbye, World!
Processing of 't.nrxT_dO7RQs5HPElq' complete
</pre>
 
Anonymous user