04-04-2012
So even a "SFTP client" can encrypt the outgoing file?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I'm having a problem with F-Secure Unix.
When I try a simple command;
sftp> put local.test remote.test
I expect that the local file local.test would be copied to the remote file remote.test
However sftp is attempting to copy local.test & remote.test from the local machine, as if... (2 Replies)
Discussion started by: b0bbins
2 Replies
2. UNIX and Linux Applications
I have tried winscp, filezilla to copy data from windows xp SP2 machine to the sun sparc unix machine. However speed is around 120 to 130 kb/sec. I do have lot of files & with large size.
So I switched to windows command prompt & transfered few files using sftp command. Its very fast as compared... (0 Replies)
Discussion started by: _prasad
0 Replies
3. UNIX for Advanced & Expert Users
Hi All Experts,
I hope you are all ok! :D
My question is simple but I was not able to find an answer in the internet, and that's why I am here!
My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
Discussion started by: felipe.vinturin
5 Replies
4. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
5. Shell Programming and Scripting
Hello, i'm doing something like that
#!/bin/sh
sftp 172.18.255.140 <<End-Of-Session >> /usr/batch/logsftp.txt
user batch
ascii
lcd /usr/batch
get olaola.txt
bye
End-Of-Session
if
then
echo MAL >> /usr/batch/logsftp.txt
echo $? >> /usr/batch/logsftp.txt
exit $?
else
echo... (16 Replies)
Discussion started by: dexposit
16 Replies
6. Shell Programming and Scripting
Hi all,
i have to sftp a file to another server
I don't have "expect" or sshpass on my machine its solaris 10,
i want to pass password in command line or
after doing this
sftp user@server how to automatically provide the password as input ( stored in some variable or so)
... (1 Reply)
Discussion started by: zozoo
1 Replies
7. Shell Programming and Scripting
Hi,
I am getting the below error while doing sftp in a script file but the same is getting executed when i run from command prompt
./CARE_SM2_SFTP.sh: put: not found
Code :-
sftp ${USER_ID}@${FTPHOST4}:/opt/path
put <Filename with path>
chmod 777 <FileName with Path>... (2 Replies)
Discussion started by: satishmallidi
2 Replies
8. Shell Programming and Scripting
I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name.
I've tried both of these, and neither work...it will always... (4 Replies)
Discussion started by: dbiggied
4 Replies
9. Linux
Hi Folks,
I am trying to copy a directory along with sub-directories to SFTP server.
I have connected to SFTP and tried to run the below command:
sftp> get -r abc/*
It is throwing the error Invalid flag -r
Can you please let me know the ways to copy a directory from Local to SFTP
... (1 Reply)
Discussion started by: kirans.229
1 Replies
10. UNIX for Beginners Questions & Answers
Hello all,
I am trying to sftp files to a server, I am using keys as authentication and I can connect with no problems. I can also put a sample file on the server.
When I tried to automate this process with a .sh file I get the
"couldn't canonicalize: Failure".
This is my script: sftp... (5 Replies)
Discussion started by: KidKoder
5 Replies
LEARN ABOUT DEBIAN
net::sftp::foreign::attributes
Net::SFTP::Foreign::Attributes(3pm) User Contributed Perl Documentation Net::SFTP::Foreign::Attributes(3pm)
NAME
Net::SFTP::Foreign::Attributes - File/directory attribute container
SYNOPSIS
use Net::SFTP::Foreign;
my $a1 = Net::SFTP::Foreign::Attributes->new();
$a1->set_size($size);
$a1->set_ugid($uid, $gid);
my $a2 = $sftp->stat($file)
or die "remote stat command failed: ".$sftp->status;
my $size = $a2->size;
my $mtime = $a2->mtime;
DESCRIPTION
Net::SFTP::Foreign::Attributes encapsulates file/directory attributes for Net::SFTP::Foreign. It also provides serialization and
deserialization methods to encode/decode attributes into Net::SFTP::Foreign::Buffer objects.
USAGE
Net::SFTP::Foreign::Attributes->new()
Returns a new "Net::SFTP::Foreign::Attributes" object.
Net::SFTP::Foreign::Attributes->new_from_buffer($buffer)
Creates a new attributes object and populates it with information read from $buffer.
$attrs->as_buffer
Serializes the Attributes object $attrs into a buffer object.
$attrs->flags
returns the value of the flags field.
$attrs->size
returns the values of the size field or undef if it is not set.
$attrs->uid
returns the value of the uid field or undef if it is not set.
$attrs->gid
returns the value of the gid field or undef if it is not set.
$attrs->perm
returns the value of the permissions field or undef if it is not set.
See also "stat" in perlfunc for instructions on how to process the returned value with the Fcntl module.
For instance, the following code checks if some attributes object corresponds to a directory:
use Fctnl qw(S_ISDIR);
...
if (S_ISDIR($attr->perm)) {
# it is a directory!
}
$attrs->atime
returns the value of the atime field or undef if it is not set.
$attrs->mtime
returns the value of the mtime field or undef if it is not set.
%extended = $attr->extended
returns the vendor-dependent extended attributes
$attrs->set_size($size)
sets the value of the size field, or if $size is undef removes the field. The flags field is adjusted accordingly.
$attrs->set_perm($perm)
sets the value of the permsissions field or removes it if the value is undefined. The flags field is also adjusted.
$attr->set_ugid($uid, $gid)
sets the values of the uid and gid fields, or removes them if they are undefined values. The flags field is adjusted.
This pair of fields can not be set separatelly because they share the same bit on the flags field and so both have to be set or not.
$attr->set_amtime($atime, $mtime)
sets the values of the atime and mtime fields or remove them if they are undefined values. The flags field is also adjusted.
$attr->set_extended(%extended)
sets the vendor-dependent extended attributes
$attr->append_extended(%more_extended)
adds more pairs to the list of vendor-dependent extended attributes
COPYRIGHT
Copyright (c) 2006-2008 Salvador Fandin~o.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-05-11 Net::SFTP::Foreign::Attributes(3pm)