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

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

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

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風(fēng)起水興,風(fēng)息水止,故時(shí)而激蕩,時(shí)又清平……
    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 閱讀(371) 評論(0)  編輯  收藏 所屬分類: 每日一記My Script

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲男人的天堂久久精品| 亚洲欧洲av综合色无码| 69成人免费视频无码专区| 精品久久久久久亚洲综合网| 国产国拍亚洲精品福利| 曰批视频免费40分钟试看天天 | 亚洲电影国产一区| 毛片免费在线观看网站| WWW国产成人免费观看视频| 亚洲激情电影在线| 亚洲不卡AV影片在线播放| 久久青草免费91线频观看不卡 | 337P日本欧洲亚洲大胆艺术图| 亚洲欧洲日产国码无码久久99| 午夜小视频免费观看| 免费91最新地址永久入口| 亚洲av无码专区在线电影| 97久久精品亚洲中文字幕无码| va亚洲va日韩不卡在线观看| 在线观看的免费网站无遮挡| 日韩免费码中文在线观看| 亚洲人成毛片线播放| 亚洲日韩精品一区二区三区| 国产老女人精品免费视频| 日本免费中文字幕| 全黄A免费一级毛片| 亚洲xxxx视频| 亚洲视频免费在线看| 亚洲中文字幕久久精品无码APP| 免费精品人在线二线三线区别| 久久精品私人影院免费看| 一级做a爰片久久免费| 亚洲熟女综合一区二区三区| 亚洲欧洲一区二区| 亚洲综合AV在线在线播放| 免费国产高清视频| 永久免费视频v片www| 亚洲高清中文字幕免费| 久9这里精品免费视频| 三级网站免费观看| 久久一区二区三区免费|