<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
    posts - 11,  comments - 30,  trackbacks - 0
    Hi All,
       
        I have written a Perl script, which deals with the ftp ing
    (transferring) the file to remote server and executing a Perl script
    (AUT) at remote m/c.

    The script is as below and here I have 2 doubts, so please help me to
    resolve this.
    1) I am getting the message like "could not transfer the file to
    server" but it is ftp ing the flie to remote m/c, and I can see that
    file ( root1.txt ) there.

    2) And I want to run the perl script (AUT) at remote m/c depending
    on the data we sent, so could you please let me know how can I achieve
    this.

    Is it possible for me to do system("test.pl"),  If I am at SFTP mode.
    Please see comment line in the code below.



    #!/usr/bin/perl -w

    use strict;
    use warnings;
    use Net::SFTP;

    my $server="A.BY.C.D";
    my $user="roserag";
    my $password="june@123";
    my %args = (user => "$user", password => "$password", ssh_args => []);
    $args{debug} = 1;
    $args{user} = "root";
    my $file="local.txt";
    my $rfile = "root1.txt";

    my $sftp=Net::SFTP->new($server, %args) or die "could not open
    connection to $server"n";
    $sftp->put($file,$rfile) or die " could not transfer the file to server
    "n";


    # system("test.pl");    Is this command work out.

    exit;


    [gaurav@testbrix Examples]$ perl sftp3.pl
    testbrix.wipro.com: Reading configuration data /home/gaurav/.ssh/config
    testbrix.wipro.com: Reading configuration data /etc/ssh_config
    ...................................
    ...................................
    testbrix.wipro.com: sftp: In write loop, got 510 offset 0
    testbrix.wipro.com: sftp: Sent message T:10 I:2
    testbrix.wipro.com: sftp: Sent message T:4 I:3
    could not transfer the file to server

    But I can see the file the file at server.


    Regards,
    XXX


    Please do not print this email unless it is absolutely necessary.
    The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
    WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

    www.wipro.com

    posted on 2009-08-06 12:06 Blog of JoJo 閱讀(379) 評論(0)  編輯  收藏 所屬分類: 每日一記My Script

    <2025年7月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 情人伊人久久综合亚洲| 最近免费中文字幕视频高清在线看| 毛片免费vip会员在线看| 亚洲精品国产免费| 91人成网站色www免费下载| 久久99国产亚洲精品观看| a毛片在线还看免费网站| 久久亚洲国产精品123区| 日韩大片在线永久免费观看网站 | CAOPORN国产精品免费视频| 亚洲成AⅤ人影院在线观看| 男女啪啪免费体验区| 久久亚洲2019中文字幕| 99麻豆久久久国产精品免费| 国产V亚洲V天堂无码| 99精品视频在线观看免费专区| 亚洲网址在线观看| 无码人妻一区二区三区免费| 亚洲人成无码网站在线观看| 国产成人无码区免费A∨视频网站| 免费亚洲视频在线观看| 亚洲人成亚洲精品| 91短视频在线免费观看| 亚洲人成www在线播放| 日本特黄特色免费大片| 国产特黄一级一片免费| 亚洲欧洲第一a在线观看| 无人在线观看完整免费版视频| 亚洲第一第二第三第四第五第六| 深夜国产福利99亚洲视频| 国色精品va在线观看免费视频| 91亚洲国产成人久久精品网站| 在线观看免费污视频| 亚洲精品国产日韩无码AV永久免费网 | 日本一道本高清免费| 久久性生大片免费观看性| ass亚洲**毛茸茸pics| 亚洲午夜精品久久久久久浪潮 | 亚洲高清中文字幕免费| 免费在线观看自拍性爱视频| 亚洲色图国产精品|