Anshul Gupta wrote:
I am also looking for something similar but instead of looking my own jobs, I want to see the wd of other users.
btw, the script i had sent will work only if root is using it. the processes which $USER fires are represented in /proc as directories with the PID as the directory-name, *and* with read/execute perms only for the $USER. thus, only if $USER is root, the script will be able to show the working-directories of other user(s).
the above comment just to remove any doubts. ;)