Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:58:50+00:00 2026-06-18T06:58:50+00:00

I must launch 2 instances of tomcat on a server and with the same

  • 0

I must launch 2 instances of tomcat on a server and with the same user.
I’m trying to set differents CATALINA_BASE when launching tomcat but this environment variable is not used.

That is the commands I use:

base0=/home/$INT/inst0
base1=/home/$INT/inst1
#...

su $INT -c "CATALINA_BASE=$base0;$cathome/bin/startup.sh"
su $INT -c "CATALINA_BASE=$base1;$cathome/bin/startup.sh"

and that is what I see in the console:

Using CATALINA_BASE:   /home/mci2/tomcat
Using CATALINA_HOME:   /home/mci2/tomcat
Using CATALINA_TMPDIR: /home/mci2/tomcat/temp

The catalina_home is ok but not the catalina_base.

Dit I miss something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:58:51+00:00Added an answer on June 18, 2026 at 6:58 am

    You should use single quotes:

    su -c "var=Hello; echo $var"
    

    vs

    su -c 'var=Hello; echo $var' 
    

    The shell interpretes the variables inside the double quotes, and having that you have not set the CATALINA_BASE for the env from which you execute su it replaces it with and empty string before actually executing the su.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to launch a test but I obtain this error The type
There must be a simple solution to this problem but for the love of
This must be a duplicate. But with so many NSPredicate questions out there, I
I am simply trying to launch an activity from a button but when I
I'm trying to set the tab badge number on launch when I receive a
I figured this must be a common question, but I surprisingly couldn't find an
This must be simple, but I guess I'm searching with the wrong key words.
I'm pretty sure there must be a way to launch spotify iphone app from
Must be missing something really obvious here but how do you change the size
Must be a way looping through this code: private void loadSprites() { this.sprites[0] =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.