Summary: Script or tool to show users' current working directories?

From: richard n. frank <rnfrank_at_inox.llnl.gov>
Date: Tue, 24 Apr 2001 15:41:16 -0700 (PDT)

Please forgive me for summarizing someone elses question with my answer...
I just thought some folks might find this useful. The script is named cwt
and it either changes the dtterm window title to the parameter you enter
when you run the script (i.e. cwt newtitle) or it changes the dtterm window
title to the current working directory. It is kind of handy if you are
working on a lot of different windows. The parameter "name=$('pwd')" can
be changed to something like "name=$(hostname)" to set the window title to
the hostname if you are working on several systems.

The 'echo' statement is entered with the keystrokes in the #comment line.

rich
-----------------------------------




#ksh cwt 1. apr. 1997 rnf
if test "" = "$1"
   then
      name=$('pwd')
      echo " Enter a parameter with the command or title=hostname. "
   else
      name=$1
fi

echo " ^[]0;$name^G "

# "<ctrl>v<ctrl>[];$name<ctrl>v<ctrl>G"


--------------------------------------------------------------------------------

>
> Is there a tool, script, or code somewhere to display users' current
> working directories?
> We have an old database system (UniVerse) which relies on finding files
> in a user's CWD.
>
> --
> Hugh Pritchard (Tier Technologies), 202-724-4690
> D.C. Ofc of Corporation Counsel, Child Support Enforcement Division
> mailto:Hugh.Pritchard_at_DC.gov
>
Received on Tue Apr 24 2001 - 22:42:26 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT