Author Topic: truss for linux  (Read 1102 times)

caveman_piet

  • Member
  • **
  • Posts: 52
  • Kudos: 0
    • http://www.pexy.co.za
truss for linux
« on: 16 February 2002, 03:03 »
Anyone know if this is available and where to get it - or something similiar?
have used this effectively for tracing systems before.
Running rh 7.1.

Tx in advance.

PS and the unix command "pg" - that available?
only 'cause I'm used to it.
Microsoft apparently thinks that R&D stands for 'Rewrap & Disguise'.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
truss for linux
« Reply #1 on: 16 February 2002, 07:24 »
What's truss?  And as far as "pg" use "more" or "less".  You can also set an alias so you have your pg command "alias pg=less".
Someone please remove this account. Thanks...

caveman_piet

  • Member
  • **
  • Posts: 52
  • Kudos: 0
    • http://www.pexy.co.za
truss for linux
« Reply #2 on: 16 February 2002, 21:57 »
"more" and "less" are more or less the same as
"pg" - an alias is obvious - but then it is not
exactly the same with the same functionality??


"truss" used on solaris boxes.
as per Sun.
"The truss (trace system calls and signals) command displays useful process-related information:

System calls performed, their arguments and return values
Signals received by the process
Machine faults incurred by the process"

So unless one have worked on a sun box - it is possible that the command will be unknown.
Microsoft apparently thinks that R&D stands for 'Rewrap & Disguise'.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
truss for linux
« Reply #3 on: 16 February 2002, 22:24 »
"more" and "less" do basically the same thing as "pg" but I personally prefer them to pg.  That said, I am pretty sure you can still find a copy of "pg" source out there (or at least a clone).

And I *should* have known what truss is since I spent most of the last 5 years working on Solaris.
Someone please remove this account. Thanks...

badkarma

  • VIP
  • Member
  • ***
  • Posts: 497
  • Kudos: 0
truss for linux
« Reply #4 on: 17 February 2002, 00:29 »
use "strace" for system calls and signals under linux, never used truss so I don't know if it's the same but it works gr8 for me  
If you can't learn to do something well, learn to enjoy doing it poorly.