When you submit a large file for printing, you might want the LP print service to notify you when printing is complete. You can request that the LP print service notify you in two ways:
Send an email message
Write a message to your console window
To request email notification, use the -m option when you submit the print request.
$ lp -m filename |
To request a message be written to your console window, use the -w option when you submit the print request.
$ lp -w filename |
In the previous example, filename is the name of the file you want to print.