On Thu, 20 Nov 2003 22:23:04 +1100 [EMAIL PROTECTED] wrote: > > lp -d brothers /home/user/workflow/Proofers/A4/*.pdf > > lp -d xeroxq /home/user/workflow/Proofers/A3/*.pdf > > rm /home/user/workflow/Proofers/A4/*.pdf > > rm /home/user/workflow/Proofers/A3/*.pdf > > > This has a few bugs which might not be obvious to some, it's also > vulnerable to overflowing the argument list buffer plus new files could > appear just after the lp -d line is expanded and run, but before the rm > is expanded and run, so files could be deleted without being printed. > It's no big deal for this application, just a minor inconvenience, it > can be avoided using Michaels example above.
I'd move files one by one to another directory (say a subdirectory) then print them from there; and delete them after. But what ALL this is doing is doing the job that a printer spooler does. I think you're better off leaving this sort of thing to a real print spooler. Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug