The batch actually uses the "at -q b -m now .......". I have
experimented on this and I have a script that just sleeps for 40
seconds. I submitted this script using the batch 5 times and the 5
jobs started simultaneously. I don't want this to happen in most of
our batch jobs. I want them to run in a sequential manner, which I can
be accomplished using the queueing mechanism of the printing subsystem.
Plus the "at -l" can only show jobs that are waiting to run in a future
time. Jobs that are running cannot be listed. You have to do the ps -
ef command which lists everything, unless of course you pipe it to
grep, etc., etc...
> How come you are using this mechanism instead of the classic 'batch'
> > Yes, yes, yes. This is exactly what I did and I have tested running
> > jobs sequentially using the queue I created "script" with the
> > = /usr/bin/ksh.
> > I have found out though that the initial directory that the script
> > start running is in /var/spool/lpd/qdir. Is there a way to
> > the behavior of ksh so that the initial working directory is the
> > current directory where the "qprt -Pscript myproc" was envoked?
> > Thanks for all your help.
> > Carlos
> > says...
> > > > Thanks, Smurfy for your reply.
> > > > How does a backend created?
> > > > Can someone point me to where I can find what are the
> > of a
> > > > backend??
> > > > Thanks.
> > > > Carlos
> > > A backend is just an ordinary program or shell script. Here an
> > example
> > > of a shell queue. It will execute the submitted scripts
> > > ----- /etc/qconfig ----
> > > bsh:
> > > discipline = fcfs
> > > device = bshdev
> > > bshdev:
> > > backend = /usr/bin/ksh
> > > -------------------------
> > > To run a shell procedure called myproc using this batch queue,
> > > $ qprt -Pbsh myproc
> > > Here some links into the AIX docs
Quote:> > > backend_overview.htm
> > > g.htm
> > --
> > --
> > Have a nice day.
> > Sent via Deja.com
> > http://www.deja.com/
> Norman Levin
> greatest power, the village idiot will come forth to be acclaimed the
Have a nice day.
Sent via Deja.com