Subject: | |
From: | |
Reply To: | |
Date: | Fri, 14 Sep 2001 16:29:34 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
"Duane R. Larkin" wrote:
>
> This whole streaming jobs thing is a new concept to me. I still not sure
> I've got it all worked out. However, I do have some Perl programs put
> together that I need to run at certain times of the day. I understand I
> can set these up as scheduled jobs, but is there a special way I have to
> setup the job stream to actually execute a Perl program??
> Actually, is there a way to run a Perl program from the CI prompt? I
> know you can run CI commands from the Posix shell.
If you have a Perl script named test.pl, you could execute it directly from the
CI (job or session, doesn't matter!) like this:
:XEQ /PERL/PUB/perl test.pl
So in a job:
!JOB PERLTEST,user.account
!XEQ /PERL/PUB/perl test.pl
!EOJ
Executing POSIX shell scripts from a job is similar:
!JOB SHELL,user.account
!XEQ SH.HPBIN.SYS test.sh
!EOJ
Executing a single shell command:
!JOB SHELLCMD,user.account
!XEQ SH.HPBIN.SYS '-c "some shell command string"'
!EOJ
Executing a bunch of shell commands:
!JOB SHELL2,user.account
!XEQ SH.HPBIN.SYS
some command string
another command string
yet another command string
exit
!EOJ
You should be able to do the same single-command and multi-command examples
with Perl. The Perl single-command parm is -e instead of -c.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|