tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "richard n. frank" <rnfrank () inox ! llnl ! gov>
To: tru64-unix-managers
Subject: Summary: Script or tool to show users' current working directories?
Date: Tue, 24 Apr 2001 22:41:16 +0000	[thread overview]
Message-ID: <102653646721694.tru64-unix-managers.marc@archive.invalid> (raw)

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@DC.gov
> 

             reply	other threads:[~2001-04-24 22:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-24 22:41 richard n. frank [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-23 15:43 SUMMARY: Script or tool to show users' current working directories? Hugh.Pritchard
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox