Professional Web Applications Themes

cwd with Net::SFTP - PERL Modules

There is an option to use 'cwd' with the Net::FTP. How can I perform this action with the SFTP (I didn't find it in the info pages of Net::SFTP)? Thanks...

  1. #1

    Default cwd with Net::SFTP

    There is an option to use 'cwd' with the Net::FTP. How can I perform
    this action with the SFTP (I didn't find it in the info pages of
    Net::SFTP)?

    Thanks
    Inna Guest

  2. #2

    Default cwd with Net::SFTP

    There is an option to use 'cwd' with the Net::FTP. How can I perform
    this action with the SFTP (I didn't find it in the info pages of
    Net::SFTP)?

    Thanks.
    Inna Guest

  3. #3

    Default Re: cwd with Net::SFTP

    Inna wrote:
    > There is an option to use 'cwd' with the Net::FTP. How can I perform
    > this action with the SFTP (I didn't find it in the info pages of
    > Net::SFTP)?
    I am not sure if you can cwd with SFTP. The perldoc mentions opendir,
    perhaps that will work for you?
    [url]http://search.cpan.org/author/BTROTT/Net-SFTP-0.05/lib/Net/SFTP.pm#_sftp_do_opendir_path_[/url]

    HTH,

    --
    -Scott
    [email]yanoffSTOP-SPAMMING[/email] | [url]http://www.yanoff.org[/url] | AOL IM: SAY KJY

    Scott Yanoff Guest

  4. #4

    Default Re: cwd with Net::SFTP

    Inna <innagaamdocs.com> asked:
    > There is an option to use 'cwd' with the Net::FTP. How can I perform
    > this action with the SFTP (I didn't find it in the info pages of
    > Net::SFTP)?
    [ Please don't multipost. If you want to ask the same question in two or
    more groups then you should crosspost. ]

    You can determine the current directory indirectly by means of the
    do_realpath() function. Like you, I can't see any other way of finding
    out.

    my $s = Net::SFTP->new('somehost') or die "Can't connect to somehost\n";
    print 'Current directory is: ', $s->do_realpath('.'), "\n";

    Chris
    --
    s=split(//,"Je,\nhn ersloak rcet thuarP");$k=$l=s;for(;$k;$k--){$i=($i+1)%$l
    until$s[$i];$c=$s[$i];print$c;undef$s[$i];$i=($i+(ord$c))%$l}
    news@roaima.freeserve.co.uk Guest

  5. #5

    Default Re: cwd with Net::SFTP

    Inna <innagaamdocs.com> wrote:
    > There is an option to use 'cwd' with the Net::FTP. How can I perform
    > this action with the SFTP (I didn't find it in the info pages of
    > Net::SFTP)?
    Answered in comp.lang.perl.modules. Please don't multipost.
    Chris
    --
    s=split(//,"Je,\nhn ersloak rcet thuarP");$k=$l=s;for(;$k;$k--){$i=($i+1)%$l
    until$s[$i];$c=$s[$i];print$c;undef$s[$i];$i=($i+(ord$c))%$l}
    news@roaima.freeserve.co.uk Guest

Similar Threads

  1. SFTP with CS3?
    By pwatvu in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: June 12th, 09:13 AM
  2. Help with Net::SFTP when sftp on unix works.
    By Ree-Yees in forum PERL Modules
    Replies: 1
    Last Post: September 21st, 07:39 PM
  3. Net::SFTP RSA Authentication
    By thebuzzhello in forum PERL Modules
    Replies: 0
    Last Post: April 12th, 04:34 PM
  4. Net::SFTP
    By April in forum PERL Modules
    Replies: 2
    Last Post: February 16th, 07:44 PM
  5. Sftp and Chroot
    By joplin_missouri in forum Linux / Unix Administration
    Replies: 1
    Last Post: August 4th, 02:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139