Opened 9 years ago

Closed 9 years ago

#4236 closed defect (fixed)

pwdx isn't available on OS X

Reported by: Sebastian Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Nyx Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When starting arm and connecting to a tor process that used a relative path for torrc, arm complains it can't find the torrc:

[ARM_WARN] Unable to load torrc (querying tor's pwd failed because the pwdx call failed: 'pwdx' is unavailable)

Instead, on OS X you can use this (quite possibly something more elegant is possible too, but didn't see it in lsof's manpage at first glance):

lsof -a -p $PID -d cwd -Fn | cut -c2- | grep -v $PID

Child Tickets

Change History (1)

comment:1 Changed 9 years ago by atagar

Resolution: fixed
Status: newclosed

Fantastic - thanks! If we're lucky this will help FreeBSD and OpenBSD too.

Note: See TracTickets for help on using tickets.