Want to compress .war extension file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Want to compress .war extension file
# 1  
Old 09-24-2011
Want to compress .war extension file

Hi All,

I want to compress a .war file.

HTML Code:
bash-3.00$ ls -l /opt/test

-rw-r--r--   1 test test          15M Aug 22 18:20 old.war

bash-3.00$ find .  -type f -exec compress {} \;

./irc.war: -- file unchanged
While try to compress the above file i am getting "file unchanged error"

Give me some suggestion.

Thanks......
# 2  
Old 09-24-2011
May be irc.war is of zero size.
Check if old.war got compressed.

--ahamed
# 3  
Old 09-26-2011
No old.war is 15mb in size.It's not of zero size. . .
# 4  
Old 09-26-2011
The error is for irc.war and not for old.war
Check if old.war got compressed!

--ahamed
# 5  
Old 09-26-2011
try with "-f" option ..
Code:
$ find . -name "old.war" -type f -exec compress -f {} \;

# 6  
Old 09-26-2011
Thanks jayan_jay

But i am getting the following output.

Is's increasing the size of the file.

HTML Code:
bash-3.00$  ls -l /opt/test

-rw-r--r--   1 test test          15M Aug 22 18:20 old.war

bash-3.00$ find . -name "old.war" -type f -exec compress -f {} \;

bash-3.00$  ls -l /opt/test

-rw-r--r--   1 test test          21M Aug 22 18:20 old.war

ahamed101 : old.war also not compress . showing the same error. . . .
# 7  
Old 09-26-2011
First just try compress old.war and check the output!

--ahamed
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sort html based on .jar, .war file names and still keep text within three groups.

Output from zipdiff GNU EAR comparison tool produces output in html divided into three sections "Added, Removed, Changed". I want the output to be sorted by jar or war file. <html> <body> <table> <tr> <td class="diffs" colspan="2">Added </td> </tr> <tr><td> <ul>... (5 Replies)
Discussion started by: kchinnam
5 Replies

2. Solaris

war file not expanded (tomcat solaris)

hi .. my example.war file is not expanded in the webapps folder.. could u guide me why the file is not expanded when i restart tomcat... (1 Reply)
Discussion started by: senkerth
1 Replies

3. Solaris

war file location...

hi. what is the data directory for tomcat-apache in which i will locate a ".war" file and if i up the tomcat the file will run and i can access that file using web... i want to know the home directory for Tomcat-apache. guide me please ... ---------- Post updated at 03:29 PM ----------... (2 Replies)
Discussion started by: senkerth
2 Replies

4. Red Hat

war file deployment

Hi Experts. I need to install one help library in Fedora 13 and I got the installation document for it: --------------------------------------------------- users need their own J2EE web application server to be able to complete this installation. The server must support J2EE - JSP... (3 Replies)
Discussion started by: orma
3 Replies

5. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

6. UNIX for Dummies Questions & Answers

How to compress files without extension

Could someone please help? I'm trying to compress all the files in a directory without extension. I know for typical files with extension, the command is something like: tar -zcvf file.tar.gz *.doc What is the command for files without extension? Thanks. (4 Replies)
Discussion started by: AChan1118
4 Replies

7. Shell Programming and Scripting

compress directories with .tar extension

hi guys.. Since am a bit new to shell scripting, can anyone help me with this problem please.. i've been struggling with it since 2 days. :( I have a directory lets say myFolder and within it I have sub directories let say myFolder1.tar, myFolder2, myFolder3, etc. I need to write a shell... (12 Replies)
Discussion started by: kanexxx
12 Replies

8. Shell Programming and Scripting

unix script to takes the old data from a TXT file and compress them into new file

Hi, I am looking for the unix script which can takes the 2 month old data from a TXT file (there is one txt file in whiche messages are appended on daily basis) and compress them into new file.Please halp me out. (2 Replies)
Discussion started by: vpandey
2 Replies
Login or Register to Ask a Question