LPT ports on PCI card

Hi…
I have PCI card with 2 additional LPT ports (I have 3 ports). I want use it
for printing. But if I want to print to printer connected to LPT2 I must
write these commands into command line:

$devc-par -p 0xd400 &
$slay spooler
$spooler -d /dev/par2 &

but I have to do this always when i want use the printer, I can write
program in shell or C doing it instead of me. I want to ask if exist
another way.
(for example: rewrite something in system file)

Thanks for advance.