Help with checking contents of file

Guys and Gals,

I have a system that some consultants have been working on. They
have an error in one of their scripts that is dumping material
into a file null 2>&1 under /dev. This is an AIX host so shouldn’t
fall under the ‘no support’ category.

My question is, how can I view the contents of this file? The syntax
eludes me. I have tried tail and using // to escape the space but
that doesn’t seem to be enough.

If I can view the contents it may help me trace what is orginating it.

Thanks.

Hi
Don’t send it to /dev/null? You might be able to pipe it through tee if
it exists in AIX?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi[color=blue]
Don’t send it to /dev/null? You might be able to pipe it through tee if
it exists in AIX?[/color]

Thanks for the suggestion, the problem was that it was NOT being sent to
/dev/null, caused by a bug in one of the AIX service launch scripts which
directed output to a file lablelled “/dev/null 2>&1” :slight_smile:

Following an IBM support link I found that I could shutdown the service
writing to the file, correct the script, restart it and then delete the
offending 1GB file.

FWIW, the correct way to delete the file under AIX is simply to enclose the
filename in quotes.