Re: sftp code to use

2018-10-28 Thread Mike
One way to unzip with Perl is this method: use warnings; use strict; use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zipfile = 'zipped.zip'; my $zip = Archive::Zip->new(); die "Error reading $zipfile:$!" unless $zip->read($zipfile) == AZ_OK; $zip->extractMember($zipfile) for $zip->members

Re: sftp code to use

2018-10-21 Thread Mike Flannigan
One way to unzip with Perl is this method: use warnings; use strict; use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zipfile = 'zipped.zip'; my $zip = Archive::Zip->new(); die "Error reading $zipfile:$!" unless $zip->read($zipfile) == AZ_OK; $zip->extractMember($zipfile) for $zip->member

Re: sftp code to use

2018-10-21 Thread Jim Gibson
Have you looked at the Net::SFTP module? > On Oct 21, 2018, at 10:56 AM, Asad wrote: > > Hi All , > > I need to accomplish the following task . i was trying in python using > subprocess and adive how to proceed will be helpful > > > sftp u...@xyx

sftp code to use

2018-10-21 Thread Asad
Hi All , I need to accomplish the following task . i was trying in python using subprocess and adive how to proceed will be helpful sftp u...@xyx.com 1212 pasword:xxx cd /patch1 get patch1.zip unzip patch1.zip sqlplus / as sysdba ===> connect to oracle database sql>startup Thanks, --