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

  • SEARCH
  • Home
  • 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 6773327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:39:19+00:00 2026-05-26T15:39:19+00:00

#! /bin/sh JBOSS_SERVER=$JBOSS_HOME/server/otcm-server JBOSS_DEPLOY=$JBOSS_SERVER/deploy JBOSS_LIB=$JBOSS_SERVER/lib JBOSS_CONF=$JBOSS_SERVER/conf JBOSS_WEB=$JBOSS_DEPLOY/ROOT.war mkdir $1 cp $1.tar $1 cd $1

  • 0
#! /bin/sh

JBOSS_SERVER=$JBOSS_HOME/server/otcm-server
JBOSS_DEPLOY=$JBOSS_SERVER/deploy
JBOSS_LIB=$JBOSS_SERVER/lib
JBOSS_CONF=$JBOSS_SERVER/conf
JBOSS_WEB=$JBOSS_DEPLOY/ROOT.war

mkdir $1
cp $1.tar $1
cd $1
tar -xvf $1.tar
rm $1.tar
cd ..

cp $1/*.xml $JBOSS_DEPLOY
cp $1/*.ear $JBOSS_DEPLOY
cp $1/*.sar $JBOSS_DEPLOY
cp $1/*.jar $JBOSS_LIB

cp $1/lib/* $JBOSS_LIB

cp $1/conf/* $JBOSS_CONF

rm -rf $JBOSS_SERVER/tmp
rm -rf $JBOSS_SERVER/work

as you can see from the script i need to move the tar to another folder then unzip the content, after that i copy the contents from that tar to their respective folders.

the main part i cant get working is the unzipping part…

  • 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-05-26T15:39:20+00:00Added an answer on May 26, 2026 at 3:39 pm

    Take a look at the ss64 website bash section. Find your commands, and look up the equivalent windows command. Note that windows does not have tar and you will need to install it, or an alternative.

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

Sidebar

Related Questions

I have copied the mysql-connector-java-5.1.18-bin to jboss/server/default/lib. But still i am getting the following
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf /usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/cppapplication_1 mkdir -p build/Debug/GNU-MacOSX rm -f
In JBoss 4.2.3 the System property 'user.dir' is defined to be <JBoss-root>/bin when I
#!/bin/sh param1=$1 param2=$2 recursive(){ mkdir -p $2 cd $1 for file in `ls $1`;
#!/bin/bash #James Kenaley 20120513 #Server Monitor Script while read -r name ip content do
#!bin/bash echo enter your password : read password passlength=$(echo ${#password}) if [ $passlength -le
#!/bin/bash echo 'first line' >foo.xml echo 'second line' >>foo.xml I am a total newbie
#!/bin/bash if test $# == 4; then echo $*; else echo args-error >&2; fi;
bin/vendors install works on my local machine. However, three entries in my deps file
#!/bin/bash # module add apps/java/1.6 java -Xmx1024m HelloWorld I need to set -XmxYm where

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.