When you put a backslash in front of them they become part of the matching
machinery's special characters, like . [ and so on. Without the backslash
they're normal characters and matched as-is. So if you had the sed command
s/(a)+/z/ and you fed it the string aaa, you would not get back z. Y
Rusty Wright wrote:
[...]
The \( \) is the grouping thing where what matches in it is then
substituted for as the \1 on the right hand side.
Yes, but if you escape them with \ , do they still get seen as (meta)
grouping indicators, or as plain "(" and ")" ?
(I don't remember what sed wants p
Thanks; good point about the speedup by not using .* (although since this is in
a boot script, in this case it shouldn't really matter much). The \( \) is the
grouping thing where what matches in it is then substituted for as the \1 on
the right hand side. Cut is one of those commands I never
Rusty Wright wrote:
I love shell script hacks so my /etc/init.d/tomcat script has the
following in the upper part where it's setting variables:
TOMCAT_HOME=`grep ^tomcat /etc/passwd | sed -e
's/.*:.*:.*:.*:.*:\(.*\):.*/\1/'`
You love shell scripts, but don't seem to love regexp's.
expor
> From: Rusty Wright [mailto:rusty.wri...@gmail.com]
> Subject: Re: run tomcat as tomcat user
>
> To answer my own question; I did some google searching and
> figured out that you need to copy the tomcat conf directory
> to ~tomcat and also create the directories ~/tomcat/log
To answer my own question; I did some google searching and figured out that you
need to copy the tomcat conf directory to ~tomcat and also create the
directories ~/tomcat/logs, ~/tomcat/temp, and ~/tomcat/work; all owned by
tomcat. Then copy over the webapps directory, or make a new one in ~to
Thanks, I like that suggestion.
So, to use your method, using the su below, would I do
export CATALINA_BASE=/home/tomcat
su - tomcat -c /path/to/tomcat/bin/startup.sh
Do I need to copy anything from the original tomcat directory to /home/tomcat,
or do I need to make any directories in it? O
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rusty,
Rusty Wright wrote:
> It's set up so that tomcat runs as the user tomcat. In order to do that
> you'll need to tweak the ownership of the files in the tomcat
> directory.
I would recommend that, instead of modifying the ownership of the Tomca
André Warnier wrote:
Kaushal Shriyan wrote:
Hi
I am not able to start tomcat as tomcat user on ubutu 8.04 Linux,
Below is my start/stop script
Any ideas as what is going wrong ?
I think the way you are using the "su" command is wrong.
Try :
su - (userid) -c "command + params"
You also probab
Kaushal Shriyan wrote:
Hi
I am not able to start tomcat as tomcat user on ubutu 8.04 Linux,
Below is my start/stop script
Any ideas as what is going wrong ?
I think the way you are using the "su" command is wrong.
Try :
su - (userid) -c "command + params"
You also probably want to re-direct t
(Repeating a reply I sent a week or so ago.)
I made this by modifying one for a different service.
It's set up so that tomcat runs as the user tomcat. In order to do that you'll
need to tweak the ownership of the files in the tomcat directory. I just made
everything owned by tomcat except we
Hi
I am not able to start tomcat as tomcat user on ubutu 8.04 Linux,
Below is my start/stop script
Any ideas as what is going wrong ?
Thanks and Regards
Kaushal
###
#!/bin/sh
#
# Startup script for
12 matches
Mail list logo