The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling a C-function froma Perl script jisha Shell Programming and Scripting 9 05-08-2008 12:59 AM
calling a shell script from perl gurukottur Shell Programming and Scripting 3 10-05-2006 11:48 AM
Box A's perl script calling box B's shell script new2ss Shell Programming and Scripting 1 09-13-2006 06:17 AM
Calling CGI Perl in Shell script [urgent] DeepakXavier Shell Programming and Scripting 0 10-09-2005 01:51 AM
calling a C executable from inside a Perl script mark_nsx Shell Programming and Scripting 3 10-07-2005 05:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2007
MobileUser MobileUser is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 17
Calling Winzip from perl script

Hi,
I would like to invoke "Winzip" utility from a perl script, input the name of zip file and provide output path for unzipped files. Any pointers will be appreciated.


Thanks
  #2 (permalink)  
Old 04-03-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
What OS/environment? The Winzip web site doesn't seem to have versions for Unix...
  #3 (permalink)  
Old 04-03-2007
mukundranjan mukundranjan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 20
Please come in details..
  #4 (permalink)  
Old 04-04-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Why do you want to execute Winzip from Perl? On Windows, you probably can use system() to execute an external command. If all you want to do is to extract or read a ZIP file, use Archive::Zip.

http://search.cpan.org/~adamk/Archiv...Archive/Zip.pm
  #5 (permalink)  
Old 04-04-2007
MobileUser MobileUser is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 17
We use Winzip to create a destination path with a specific suffix for individual zipped files on Windows. Just wanted to automate the same for multiple zipped files using a perl script.
  #6 (permalink)  
Old 04-04-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
prepare the command that does the task for you. then run that command in a perl script as:
Code:
@command_to_run = ("command", "arg1", "arg2");
system (@command_to_run);
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0