LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can anyone explain what is going on here? (https://www.linuxquestions.org/questions/linux-newbie-8/can-anyone-explain-what-is-going-on-here-4175473937/)

SaintDanBert 08-19-2013 04:41 PM

can anyone explain what is going on here?
 
So I go looking at my printer configuration:
Code:

prompt$  ls -lh /etc/cups/ppd/O*

-rw-r--r-- 1 root root 2.6K 2012-01-26 16:03 /etc/cups/ppd/OJet6500_fax.ppd
-rw-r--r-- 1 root root  23K 2012-01-26 16:03 /etc/cups/ppd/OJet6500_prt.ppd
-rw-r--r-- 1 root root 2.8K 2012-08-05 22:09 /etc/cups/ppd/Ojet7300_fax.ppd
-rw-r--r-- 1 root root  24K 2012-08-05 22:09 /etc/cups/ppd/OJet7300_prt.ppd

I wonder about the details for one of the printers:
Code:

prompt $ less /etc/cups/ppd/Ojet7300_prt.ppd

/etc/cups/ppd/Ojet7300_prt.ppd: No such file or directory

On further inspection I get:
Code:

prompt $ stat /etc/cups/ppd/Ojet7300_prt.ppd

stat: cannot stat `/etc/cups/ppd/Ojet7300_prt.ppd': No such file or directory

prompt $ fuser /etc/cups/ppd/Ojet7300_prt.ppd

Cannot stat /etc/cups/ppd/Ojet7300_prt.ppd: Bad address

I've never seen a file that exists but yet does not exist.

Can anyone explain what is going on?
Can anyone offer steps for more diagnosis?

Stumped,
~~~ 8d;-/

Firerat 08-19-2013 04:47 PM

longshot.....


the filename has one or more spaces on the end..


spam your tab key and see if comandline completion. helps out

SaintDanBert 08-19-2013 05:12 PM

So I try:
Code:

prompt$  stat /etc/cups/ppd/{TAB}

OJet6500_fax.ppd  ojet7300_fax.ppd  ojet7300_prt.ppd 
OJet6500_prt.ppd  Ojet7300_fax.ppd  OJet7300_prt.ppd

Then I try:
Code:

prompt$ stat /etc/cups/ppd/OJet{TAB}

OJet6500_fax.ppd  OJet6500_prt.ppd  OJet7300_prt.ppd

Lastly, I try:
Code:

prompt$ stat /etc/cups/ppd/OJ{TAB}
... and I get ...
prompt$ stat /etc/cups/ppd/OJet7
... and again ...
prompt$ stat /etc/cups/ppd/OJet7{TAB}
... and I get ...
prompt$ stat /etc/cups/ppd/OJet7300_prt.ppd

  File: `/etc/cups/ppd/OJet7300_prt.ppd'
  Size: 23738            Blocks: 48        IO Block: 4096  regular file
Device: 807h/2055d        Inode: 2108819    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)  Gid: (    0/    root)
Access: 2013-08-18 21:00:03.052447295 -0500
Modify: 2012-08-05 22:09:58.385534094 -0500
Change: 2012-08-05 22:09:58.385534094 -0500

The trouble was the mixed use of upper and lower case letters in the file names.
Looking at the original list of files:
  • there is an all lower case "ojet" 7300
  • there is a cap-O, cap-J "OJet" 7300 prt but not fax
  • there is a cap-O, low-j "Ojet" 7300 fax but not prt
My commands did, in fact, ask for files that did not exist.

R-T-F-S, (blush)
~~~ 0;-/ Dan


All times are GMT -5. The time now is 02:49 AM.