1833847 Members
2066 Online
110063 Solutions
New Discussion

Re: HP-UX

 
raghu_8
Occasional Contributor

HP-UX

Hi,

Can anyone tell me after doing a cat or more on file /usr/lib/dld.sl system doesn't display the characters typed. or the particular session will not respond .

Thanks in advance.

Thanks and Regards
Raghuram Rao
5 REPLIES 5
bhavin asokan
Honored Contributor

Re: HP-UX

hi,
/usr/lib/dld.sl is not a normal ascii/text file .

dld.sl: s800 shared library -not stripped

to see the contents you should use strings commands.

#strings /usr/lib/dld.sl |pg

the output will be something like following.

92453-07B
11.25
92453-07B
11.25
(C) Copyright Hewlett-Packard Co. , 1991-1993. All rights reserved. No part of this program may be photocopied, reproduced, or trans
mitted without prior written consent of Hewlett-Packard Co. .
ShlTool 1
$TEXT$
$UNWIND_START$
$UNWIND_END$
$RECOVER_START$
$RECOVER_END$
$PRIVATE$
$BSS$
$DLT$
$PLT$
$SHLIB_DATA$
$SHLIB_INFO$
$LIT$
$CODE$
$UNWIND$
$DLDJMP$
$MILLICODE$
$PFA_COUNTER$
$DATA$
$SHORTDATA$
$GLOBAL$
$SHORTBSS$
$UNWIND$MILLICODE$
dldjmp
PA-RISC 2.0 Assembler
HP92453-03
UX.11.01.14
_dld_main
_shl_load
_shl_unload



regds,

Robert-Jan Goossens
Honored Contributor

Re: HP-UX

Hi Raghu,

You can also use chatr

# chatr /usr/lib/dld.sl

Best regards,
Robert-Jan
Franky_1
Respected Contributor

Re: HP-UX

Hi,

don't use cat here, cause it's not a ascii/text file use "strings" instead

strings dld.sl

Regards

Franky
Don't worry be happy
Geoff Wild
Honored Contributor

Re: HP-UX

Use the file command to see what type of file it is:

# file /usr/lib/dld.sl
/usr/lib/dld.sl: s800 shared library -not stripped


# file /etc/hosts
/etc/hosts: ascii text


If ascii text, then you can cat/more it.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ranjith_5
Honored Contributor

Re: HP-UX

Hi Raghu,

use #strings to view the file since the file you are trying to view is a s800 shared library, which is an ASCII one.

You can use #cat to view text files.

Regards,
Syam