|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hi ,
Can somebody Please help me in finding out where I am going wrong. Suppose i have a file called r_wer which contains files. for ex : LMN20001 LMN20002 LMN20003 Now I want to print them. The way I am doing is $ for a in `cat '/r_wer'` > do > lp -d printername $a > done But it is giving me an error message. lp: can't access file "LMN20001" lp: request not accepted. This is with all the files. Can somebody Please help me. |
| Sponsored Links | ||
|
|
|
|||
|
Hi
Just check whether all the files that you are trying to print are in the current directory from where you are issuing this command . if not then give the full path names of the files in the file r_wer
I tried the same thing by making a script file and it worked fine. for a in `cat './files.txt'` do lp $a done files.txt is the same as your r_wer. That's it Last edited by kapilv; 07-08-2001 at 05:25 AM.. |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with printing | rongrout | SCO | 2 | 07-23-2008 03:00 PM |
| Printing problem | alfredo | HP-UX | 2 | 03-27-2008 05:25 AM |
| Printing Problem | Rosario | UNIX for Advanced & Expert Users | 0 | 05-11-2007 01:05 PM |
| Printing problem | Yorgy | UNIX for Dummies Questions & Answers | 1 | 01-16-2007 02:23 AM |
| Printing Problem | kapilv | IP Networking | 3 | 04-02-2002 10:23 AM |