LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2013, 04:41 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,511
Blog Entries: 3

Rep: Reputation: 96
Exclamation 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;-/
 
Old 08-19-2013, 04:47 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
longshot.....


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


spam your tab key and see if comandline completion. helps out
 
1 members found this post helpful.
Old 08-19-2013, 05:12 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,511
Blog Entries: 3

Original Poster
Rep: Reputation: 96
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
 
  


Reply

Tags
file, stat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
If someone could explain what I did exactly? cheese1343 Linux - General 1 12-05-2011 03:39 AM
Can someone explain this to me, please? Hammett Linux - Software 3 02-16-2006 08:02 PM
Can somebody explain this to me? SyBEX Linux - Software 3 10-24-2004 05:32 PM
Can someone explain me what this is? hemmelig Linux - Software 3 10-14-2004 06:16 PM
Can someone explain this ? beyond_2000 Linux - Hardware 6 10-08-2002 06:02 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration