Yea,
that's what I did. Try to run it on a desktop machine running linux and see what
happens...
jcl
Hi
John,
I followed your instruction but still does not work. I am afraid
that webcache is not "listening".. Do you use the same method as he said
to kill and restart inetd?
Below is what I did on my 7250: $ ps
| grep inetd PID Uid VmSize Stat
Command 56 root 716
S /usr/sbin/inetd $ kill -HUP 56 $ ps |grep
inetd 56 root 716
S /usr/sbin/inetd
However it seems that "kill -UP 56" does
not invoke inetd re-read inetd.conf. That's why my request got
rejected.
Tom
--- In "John Lincicome"
<> wrote: > > Hello Tom, > I'm not
Jim but I did use his script and instructions with success. The > only
change I made was in the line he added to /etc/inetd.conf .
I assummed > that the tailing webserv.sh was a typo and so I didn't
include it (i.e., the > line I added to inetd.conf is "webcache
stream tcp nowait root > /usr/bin/webserv.sh"). I'm not sure if this is
your problem. > Incedently, I got HTTP requests rejected
when the webcache gizmo wasn't > running (or whatever the hell it
does). I solved this by killing inetd and > restarting with the kill
-HUP .... as outlined in Jim's instructions. Also, > I noticed
sometimes that I had two inetd running and I believe there should >
only be one. So I would kill the one I hadn't performed the kill -HUP
... > on. Hope this helps. > jcl > [John
Lincicome] -----Original Message----- > From:
[ Behalf
Of > chentom60 > Sent: Tuesday, January 24, 2006 8:31
PM > To: >
Subject: [ts-7000] Re: how to request 7250 execute command
from external > web browser? > > >
Hello Jim, > > I followed exactly as what you did,
but my HTTP requests are always > rejected. I am using TS-7250,
not 7200. Is that a problem? I don't think > your script is wrong,
rather, webcache may not be called when I use > http://192.168.0.50:8080/hello
command. > > > Is it possible that you forgot
to mention any other step? any other .conf > also needs to be
modified? > > Has anybody tried this script on 7250
also? > > Tom > > > >
> --- In Jim Jackson
<> wrote: > > >
> > > > > On Wed, 18 Jan 2006,
chentom60 wrote: > > > > > Also,
I heard python is more simpler and more powerful than Perl.
Is > > > it true? >
> > > Apples and Oranges -which is the best
fruit? > > I'd argue that for general scripting purposes
then Perl is the most > > powerful scripting language
there is, but if you are designing a large > > user
application then maybe it isn't appropriate. >
> > > > I would appreciate if anyone would give me
some explaination. > > > > Try
googling - there is tons of stuff out there. >
> > > For many simple purposes your best scripting
language is just sh. > > > > As an
example I've attached a simple shell script that acts as >
> a web browser. I call it webserv.sh >
> > > Install the shell script in a directory - say
/usr/bin > > make sure it is
executable > > > > chmod 755
/usr/bin/webserv.sh > > > > edit
/etc/inetd.conf and add a line like..... >
> > > webcache stream tcp nowait root
/usr/bin/webserv.sh webserv.sh > > >
> then find the process number of your inetd process >
> > > ps | grep inetd >
> > > 333 root 596 S
/usr/sbin/inetd > > 4560 arm 428 S grep
inetd > > > > Then send the inetd
process a HUP signal make it reread the config file >
> > > kill -HUP 333 >
> > > Then you should have a "webserver" listening on
the webcache port (8080) > > > >
assuming your ts7200 has the address 192.168.0.50, point a
web browser > > at >
> > > http://192.168.0.50:8080/hello >
> > > a simple fixed hello page >
> > > http://192.168.0.50:8080/usage >
> > > an example of executing commands and use of
refresh > > > > http://192.168.0.50:8080/fred >
> > > example of a 404 simple page for a non existant
page > > > > http://192.168.0.50:8080/jj >
> > > an example of a redirect - if you browser has
internet access, you'll > > end up at my webpage
:-) > > > > > >
The script is only 100 odd lines and is very easy to follow and
to > > customise for your own usage. >
> > > Who needs apache :-) >
> > > Jim > > > >
> > > SPONSORED LINKS Computer internet
security Linux os Computer internet >
business > Computer
internet access Computer internet privacy securities > Computer
internet help > >
> ---------------------------------------------------------------------------- >
-- > YAHOO! GROUPS LINKS >
> a.. Visit your group "ts-7000" on the
web. > > b.. To unsubscribe from
this group, send an email to: >
> >
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of >
Service. > >
> ---------------------------------------------------------------------------- >
-- >
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|