* Re: [9fans] stopping sleep and aux/listen
@ 2000-12-29 12:46 William Staniewicz
0 siblings, 0 replies; 4+ messages in thread
From: William Staniewicz @ 2000-12-29 12:46 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Yes, it looks like just running ftpfs will work fine keeping
the connection alive. I guess I just presumed I would need
to be doing something there to keep from appearing
idle.
Bill
[-- Attachment #2: Type: message/rfc822, Size: 1703 bytes --]
From: Scott Schwartz <schwartz@bio.cse.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] stopping sleep and aux/listen
Date: Thu, 28 Dec 2000 17:41:01 -0500
Message-ID: <20001228224102.11620.qmail@g.bio.cse.psu.edu>
| You can't kill this except by killing
| the rc that is running the while loop.
ftpfs used to send NOOPs once in a while. Isn't that sufficient to
keep the connection alive?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] stopping sleep and aux/listen
2000-12-28 9:33 ` Russ Cox
@ 2000-12-28 22:41 ` Scott Schwartz
0 siblings, 0 replies; 4+ messages in thread
From: Scott Schwartz @ 2000-12-28 22:41 UTC (permalink / raw)
To: 9fans
| You can't kill this except by killing
| the rc that is running the while loop.
ftpfs used to send NOOPs once in a while. Isn't that sufficient to
keep the connection alive?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [9fans] stopping sleep and aux/listen
@ 2000-12-28 15:23 William Staniewicz
0 siblings, 0 replies; 4+ messages in thread
From: William Staniewicz @ 2000-12-28 15:23 UTC (permalink / raw)
To: 9fans
In order to keep the connection to my ISP alive, I start
ftpfs and run the following:
while (){
lc /n/ftp >> templog
sleep 300
}&
After I disconnect from my ISP I would like to
"kill" this. How do I do it? Kill and slay don't seem to
work the way I normally use them.
Also, I start 'aux/listen tcp' after being logged on
to my ISP. How do I stop this when I disconnect?
Bill
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] stopping sleep and aux/listen
@ 2000-12-28 9:33 ` Russ Cox
2000-12-28 22:41 ` Scott Schwartz
0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2000-12-28 9:33 UTC (permalink / raw)
To: 9fans
while (){
lc /n/ftp >> templog
sleep 300
}&
You can't kill this except by killing
the rc that is running the while loop.
Better to put it into a script pingftp
and then kill pingftp|rc.
To kill off the listeners, try this:
term% cat /rc/bin/Kill
#!/bin/rc
ps | sed -n 's%^[^ ]* *([^ ]*) *[^ ]* *[^ ]* *[^ ]* *[^ ]* *'$1'%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p'
term%
It's like slay but for any process, not just
those owned by you.
Also at http://plan9.bell-labs.com/~rsc/Kill
if the line gets mangled (that's one line not
counting #!/bin/rc).
Russ
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-12-29 12:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-29 12:46 [9fans] stopping sleep and aux/listen William Staniewicz
-- strict thread matches above, loose matches on Subject: below --
2000-12-28 15:23 William Staniewicz
[not found] <rsc@plan9.bell-labs.com>
2000-12-28 9:33 ` Russ Cox
2000-12-28 22:41 ` Scott Schwartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).