A file or directory in the path does not exist

I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with.

prod @ root /pcdial/abq> (I'm in this directory)
prod @ root /pcdial/abq>/usr/bin/lp -d PS8 rom1.txt

Hello Dark0Prince,

Welcome to the forum.

I have a few questions for you, I'm afraid:-

  • Are you getting an error message at all?
  • What output do you get from lpstat -W
  • What output do you get from grep PS8 /etc/qconfig

It would be good to know the version of AIX you are using. That can be seen from oslevel -s

Thanks, in advance,
Robin

Yes the error is FATAL ERROR: 0781-161 Argument rom1.txt is not an accessible file.
My AIX version is 5300-10-01-0921

grep PS8 /etc/qconfig 

>shows

PS8:

When i type

 lpstat -w 

>shows

lpstat: Not a recognized flag: w 

then shows all the usage commands for lpstat

---------- Post updated at 09:19 AM ---------- Previous update was at 08:02 AM ----------

wow just wow .txt or .TXT makes a difference FML

I am forgetting myself. Can you try this instead to get the paragraph about PS8?:-

grep -p PS8: /etc/qconfig

Sorry about that,
Robin