It is currently Tue, 07 Dec 2021 02:36:36 GMT



 
Author Message
 Tcsh watch variable (was: converting to zShell from tcShell)

In article <1993Mar6.221118.8...@mnemosyne.cs.du.edu>,
cp...@nyx.cs.du.edu (Chris "THE SWEDE" Palm) writes:
|>
|> Another question about the tcShell.
|>
|> How do I get the watch cmd to work??
|>
|> I have tried set watch=(any any) like it sais in the man pages.
|> This is supposed to watch every login/out but it does nothing?
|>

        The manual page says that the intevall between checks is
10 minutes. I have discovered yesterday it is 10 hours (it's
not a joke :-). I just send a bug report to the maintener (but
without fix).

If you want check every 10 minutes, type
        set watch=(10 any any)
It's working for me.

                                        Laurent



 Thu, 24 Aug 1995 18:23:40 GMT   
 Tcsh watch variable (was: converting to zShell from tcShell)
...
        I have a question about watch. It only prints out the information
after I hit carriage return ( assuming the watch interval has expired).
Does it come out of its own accord for anyone else ? (6.03 on hp9k8,8.02)
Thanks
-Mike Corrigan


 Sat, 26 Aug 1995 07:55:00 GMT   
 Tcsh watch variable (was: converting to zShell from tcShell)

Anyone know I way I can use the set watch command with a list of people, maybe
in a file ?

eg. I have a file with this:

s1111111         Fred
s2222222         Wilma
s3333333         Pebbles

and I want to check for when s111111 etc. has logged on or off and tell me Fred
has done so (not tell me s111111 has done so)
--
            Robert Winkel           |  And crawling on the planet's face...    
            (Wee Willie)            |  Some insects called the human race...  
    s892...@minyos.xx.rmit.oz.au    |  Lost in time and lost in space...      
    s892...@yallara.cs.rmit.oz.au   |  And meaning...                          



 Sun, 27 Aug 1995 18:35:35 GMT   
 Tcsh watch variable (was: converting to zShell from tcShell)

Wouldn't be your .friends file for lon by any chance? :)

Try:

    set watch=(`awk '{print $1}' .friends `)

(Yes, I know what you want - i was looking at hacking tcsh to handle:
  set watch=(friends any), but it was looking to be a _big_ hack)

--
Luke Mewburn [Zak], <z...@rmit.edu.au>
"Lawyers - the only group for which ignorance of the law is not a crime"



 Sat, 02 Sep 1995 22:24:56 GMT   
 Tcsh watch variable (was: converting to zShell from tcShell)

if ($?prompt) then
 set path=($HOME/bin $HOME/matrix $path)
 ...

 ^^^^^^^^^^        
 ...

 set noclobber
 set history=50
 if (("${HOST}" == "pitt.WPI.EDU") || ("${HOST}" == "poisson.WPI.EDU")) then
   set prompt = '%B%/>>'
   set watch = (0 any any)
  else
    set prompt = '%B%m %/>>'
    set watch = (0 any any)
   if (("${HOST}" == "bigwpi.WPI.EDU") || ("${HOST}" == "wpi.WPI.EDU")) then
   mesg y
   set watch = (0 dodger any greger any ducker any atkins any kuzara
any diaz any qasama any jason any)
   endif
  endif
 endif
endif

        Please note the notify... also note that I do need to type
return in order for the watch varible to access output to my screen.
There are backround shell scripts which can be run, so that it does
check, without hitting the CR... This is part of my .tcshrc... and
notify does not allow me to have instant response to someone's login.
I am working on a C program which will fork() a child process which
will constantly check the status of the user list on the machine, so
that it will "notify" you as to when someone logs onto the same
machine as you (I haven't incorporated a selective watch file yet).
But I have to disagree with your assessment that "set notify" will
work for all systems with tcsh, although is may work on yours.

                                        -Rion Hall-

<-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- *r...@wpi.wpi.edu* --->
The desire of the moth for the star,     The devotion to something afar
 Of the night for the morrow,             From the sphere of our sorrow.
                                 -Shelley-



 Sun, 03 Sep 1995 17:45:34 GMT   
 
   [ 5 post ] 

Similar Threads

1. Is watch(8) broken or am I?

2. leaving tcsh's watch function ?

3. TCSH watch...

4. How do I ${watch} users logining in via a tcsh shell script

5. Tcsh: Login/Logout watching

6. tcsh : autologout[2] doesn't watch for shadowing

7. tcsh watch suggestion

8. 'watch' csh variable

9. I AM GONNA PUKE - I AM GONNA PUKE - I AM GONNA PUKE - I AM GONNA PUKE - I AM GONNA PUKE - I AM GONNA PUKE - I AM GONNA PUKE -

10. I am a Unix convert


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software