Requesting Notification When Printing Is Complete
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:
To request email notification, use the -m option when you submit the print request.
To request a message be written to your console window, use the -w option when you submit the print request.
In the previous example, filename is the name of the file you want to print.