[fa.info-vax] cpu statistics and input/output redirect

info-vax@ucbvax.ARPA (03/02/85)

From: (Stephen Tihor) <TIHOR@NYU-CMCL1.ARPA>

If you have control over the input file or the input file is null then

the command:
		SPAWN/INPUT=NL:/OUTPUT=outfile/wait command

will to command </dev/null >outfile and the statistics will appear at then
end of the file.  Modifying the input file (assuming it contains no leading $
to end with $LOGOUT/FULL and doing a

		SPAWN/INPUT=modified_input_file/OUTPUT=outfile/WAIT command

will also work.  If the input file is something you don;t want to play with
making it:

		$ CREATE TIMECOM.COM
		$ ASSIGN inputfile SYS$INPUT /user
		$ ASSIGN outputfile SYS$OUTPUT /user
		$ command
		^Z

		$ SPAWN/INPUT=NL:/OUTPUT=timeinformationlocation/WAIT @TIMECOM

will handle it quickly.

Using any of the various command timing tools people have written over the
\years and submitted to the DECUS tapes is also functional but not useful
in a hurry if you don;t have the right tape.

 \\   Stephen Tihor / CIMS / NYU / 251 Mercer Street  / New York, NY 10012  //
((  DEC Enet: RHEA::DECWRL::"""TIHOR@NYU-CMCL1.ARPA"""  NYUnet: TIHOR.CMCL1  ))
 // ARPAnet: Tihor@NYU-CMCL1   UUCPnet address: ...!ihnp4!cmcl2!cmcl1!tihor \\

-------

info-vax@ucbvax.ARPA (03/04/85)

From: ricks@ucbic (Rick L Spickelmier)

This may be a simple question for VMS gurus, but for
a UNIX type just trying to run a few tests on VMS, I'm
confused....  I need to get cpu time for a process
and have the input and output redirected.  The equivalent
UNIX command would be:

	time executable < input > output

Can anybody out there tell me how I can do this under VMS?

	    Thanks alot,
		Rick Spickelmier,  ricks@berkeley