#!/bin/bash
# Copyright (c) 2014 Cloudera, Inc. All rights reserved.
#
# Runs lsof against a process, directing the output to a file.
#
# arg1: pid
# arg2: output filename

# Enable tracing.
set -x

lsof -P -n -p "$1" 2>&1 > "$2"
