in reply to Re: EMC VNX SCRIPT
in thread EMC VNX SCRIPT

Hi Thanos, Thanks for the reply

Issue with my script was not the time , but my issue is nas_Checkup command takes 15 min normally .But my script is not waiting that much minute to print the output in file. I want my script to wait till command fully runs.

Replies are listed 'Best First'.
Re^3: EMC VNX SCRIPT
by thanos1983 (Parson) on Aug 09, 2018 at 10:51 UTC

    Hello again atulperl,

    Unfortunately I can not replicate your problem. Can you give it a try on the sample of code Update3 I think this is the best approach of using Net::SSH2::Channel::read2 method, capable of capturing STDOUT and STDERR.

    If this fails can you provide the output what is the error code that is failing?

    P.S. why specifically this module Net::SSH2 and not any other SSH module available e.g Net::OpenSSH?

    Hope this helps, BR.

    Seeking for Perl wisdom...on the process of learning...not there...yet!