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->members;


__END__




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.com 1212
pasword:xxx
cd /patch1
get patch1.zip
unzip patch1.zip
sqlplus / as sysdba ===> connect to oracle database
sql>startup


Thanks,

--
Asad Hasan
+91 9582111698

Jim Gibson



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




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.com 1212
> pasword:xxx
> cd /patch1
> get patch1.zip
> unzip patch1.zip
> sqlplus / as sysdba ===> connect to oracle database 
> sql>startup
> 
> 
> Thanks,
> 
> -- 
> Asad Hasan
> +91 9582111698

Jim Gibson

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




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,

-- 
Asad Hasan
+91 9582111698