oooooo a pool of knowledge! ^_^ Now I have to say i have no prior knowledge of this alias setup - for starters i have no 'bash_profile' folder, but i assume the profile.d is the place i want to be? I can enter the alias command, and it appears to work but no csh/sh file is created anywhere, so i had a look at the mc.csh which is one for midnight commander and redid and resaved it as the alias file i want. Theres a sh file for it too, though i don't know whether thats applicable. Then you 'source' it? it didn't appear to do much either ;) I assume in the samba.conf it goes 'printcap name = lpstat_sleep'? I added the changes for the print commands too. Its printing, but theres no printing delay or prevention of multiple jobs from one user. I did a 'man alias' but all i got was a complete listing of bash arguements :( --- Thomas Adam <thomas_adam16@yahoo.com> wrote: > --- Steve Palmer <lumpyhed@yahoo.com> wrote:
its being run by the 'print command' within samba, with the printcap as 'lpstat'. I'm not sure whether you can do multiple lines of commands though. I've been sodding around with this CUPS/Samba setup for months now it seems ^_^
Ah.....
"lpstat" is a shell program. Therefore, what you could do is be clever and do something like:
alias lpstat_sleep='sleep 60s && lpstat'
in your "/etc/bash_profile" file.
Then source it
. /etc/bash_profile
Then change your SAMBA definition so that "printcap" now reads equal to "lpstat_alias". This'll then give you your 60 sec. delay.
You'll have to modify the alias to suit your needs though. I'm sure there is an easier way, but this is perhaps a suitable fix for now :)
HTH,
-- Thomas Adam
===== Thomas Adam
"The Linux Weekend Mechanic" -- www.linuxgazette.com
__________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer
__________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer