suppress unzip queries


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting suppress unzip queries
# 1  
Old 04-02-2009
Data suppress unzip queries

hey i have piece of code working in solaris and same code i want to deploy it in linux but in solaris its not asking for queris but in linux it is !!!!

COMMAND ==>
unzip $test/alter.war -d $webclientHome/.

OUTPUT==>

In solaris it proceeds with following traces


replace /aa/test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(assuming [N]one)


but in linux it doesn't !!
it WAITS in Linux for user....
replace /aa/test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: inflating: /aa/test.txt

Iknow there is -o option to suppress unzip queries but i dont understand without using that -o option how it is working in solaris and not in Linux ?
# 2  
Old 04-02-2009
Quote:
Originally Posted by crackthehit007
Iknow there is -o option to suppress unzip queries but i dont understand without using that -o option how it is working in solaris and not in Linux ?

Presumably, the two unzip commands use different code.
# 3  
Old 04-02-2009
UnZip 5.52 of 28 February 2005, by Info-ZIP. Maintained by C. Spieler. ==> same version is present on solaris and linux machines !!!

Any idea?
# 4  
Old 04-02-2009
Quote:
Originally Posted by crackthehit007
UnZip 5.52 of 28 February 2005, by Info-ZIP. Maintained by C. Spieler. ==> same version is present on solaris and linux machines !!!

Any idea?

The code on either could have been modified. The Linux code you can definitely get; the Solaris version, maybe, maybe not (depending on the version).
# 5  
Old 04-02-2009
as far as i know ,
if we pipe N with command
i.e.

N | unzip $test/alter.war -d $webclientHome/.


It will show u "replace /aa/test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(assuming [N]one)
" and proceed without waiting for user to enter anything (as obvious)

Its not the case in solaris , its just proceeding...!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

2. Shell Programming and Scripting

How to suppress error in following command?

I have a file containing data in multiple columns. The colums are seperated by pipe (|). I need to extract information as below: myfile_20130929_781;10;100.00 where myfile.txt is the file name. 10 is the number of records in the file starting with 120 and 100.00 is the sum of 26th field of... (16 Replies)
Discussion started by: angshuman
16 Replies

3. Shell Programming and Scripting

how to suppress dd output?

I have to stop the output of dd from writing to terminal. Here is the command: sudo dd if=boot1h of="/dev/r$temp1" Here is the output: 2+0 records in 2+0 records out 1024 bytes transferred in 0.000804 secs (1273715 bytes/sec) I have tried >> log.txt but it doesn't work. Is there... (4 Replies)
Discussion started by: msf5042
4 Replies

4. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

5. Shell Programming and Scripting

suppress the Connection text

Hi Guys, I am calling a function from my script. The function has to return only one value which is the year. But in the function, i am having connecting statement to the database. The connection information is coming along with the year variable. I want to suppress the connecting... (1 Reply)
Discussion started by: mac4rfree
1 Replies

6. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

7. Shell Programming and Scripting

Suppress error message in unzip

I'm creating a bsh shell to unzip a file from one directory into another. The directory that holds the zip files has zip files constantly being added to it, so I am testing it before it does the unzip and more. Right now my code looks like this: unzip -tq $ZIP_PATH/$ZIP_NAME >/dev/null if ... (5 Replies)
Discussion started by: skwyer
5 Replies

8. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
Login or Register to Ask a Question