HP3000-L Archives

January 1995, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Eero Laurila <[log in to unmask]>
Reply To:
Eero Laurila <[log in to unmask]>
Date:
Tue, 31 Jan 1995 05:52:02 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Thomas Hagen ([log in to unmask]) wrote:
: Hello, could someone please explain how to start a job in a command file?
: The JOB description should be included in the command file like this :
 
: PARM parameter1
 
: STREAM ,*
: *JOB ...
: *TELL @;!parameter1
: *EOJ
 
Here's one way... build your job into a temp file using echo-command
and you'll get all substitutions done with echo's, then stream the temp
file.  Use ">" to start the file and ">>" to append to it... see:
 
parm parm1="hi there!" parm2=default2 parm3=default3 ...and so on
echo !!job jname,user/upass,acct/apass > jobfile
echo !!tell @;!parm1                   >> jobfile
...
echo !!eoj                             >> jobfile
stream jobfile
 
and the resulting file looks like:
 
:print jobfile
!job jname,user/upass,acct/apass
!tell @;hi there!
!eoj
 
Eero Laurila - HP CSY Networking lab.

ATOM RSS1 RSS2