Will this help? I've created a new queue, generic ascii, called mailptr 3. I am missing the details of step 2 from the previous reply.
Thank you Mike Wendling. My mail queue was an "other". I set the "backend" as the name of the script. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.
Close Box. Get the number from the txt file. Hello Guy, I have the following information in the sample. Printing Multiple Copies. Has anyone come accross and solved an issue where only 1 copy of a doc prints after you use the -n flag and specify more then 1. My exact syntax is lp -dprintername -n3 documentname enq command does same thing.
Both commands show the 3 copies in the queue but only 1 ever prints I am using AIX Printing multiple copies via remote queue. Hi all, I have an interesting problem. Using remote queues to print using jetdirect printers I am unable to get a printer to print multiple copies of a print job. I'm trying to print multiple copies of a file on sun solaris 8 with the lp -n command to no avail. No matter what numeric value I supply -n, I still only get 1 copy of the file printed. Thx: 5 Replies.
RedHat Commands. OpenSolaris Commands. Is there an easy way to do this? Since your file is short, you can use cat. If you have to view the contents of a longer file, you can use a pager such as less. You can make less behave like cat when invoked on small files and behave normally otherwise by passing it the -F and -X flags.
If you add the alias to your shell configuration , you can use it forever. If your file contains strange or unprintable characters, you can use od to examine the characters. For example,. Even though everybody uses cat filename to print a files text to the standard output first purpose is con cat enating. From cat's man page:. However it does not have all the feature added by less. One simple example is that you can't scroll back up in the output. Generally it has been superceeded by less - which was named in jest because.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How can I display the contents of a text file on the command line? To remove a print job, first use the lpq command to find the job number of the print request you want to cancel.
Then use the lprm command to kill the job by specifying the job number. For example, if you want to kill job number on printer ps99 , enter:. Note: Unless you have system administration privileges, you can remove only print jobs that you have submitted, not jobs submitted by other users. In System V, use the -d flag to do this. You can also use the lp command in a pipeline to print the output from other Unix commands.
For example, to print out a long listing of the contents of the current directory with System V, enter:. With System V, use the lpstat command to list the jobs for a particular printer.
Using lpstat prints the status of all your print requests made by lp to the default or designated printer. To see the status of print jobs you have sent to the queue of the default printer that are still waiting, enter:. To check what jobs are pending for a particular printer, use the lpstat -P command.
For example, to view the queue for printer ps99 , enter:. With System V, use the cancel command to stop the printing of a file.
0コメント