10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
2. IP Networking
Ok sftp connects but hangs after I enter the password manually
The ssh version is 1.0
bash-2.05$ ssh -V
SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.
When I go from solaris 9 to sftp to another server with latest proftpd version it hangs after the password.
proftpd -V
Compile-time... (6 Replies)
Discussion started by: slufoot80
6 Replies
3. UNIX for Advanced & Expert Users
Hello I have a sftp problem.
If I do sftp between some nodes that we installed it works fine i can list
directories and get files.
If I connect with sftp from the other side of a firewall (wich has port 22 open)
I can log in and cd to which ever direcory i want i can do pwd but when i do... (4 Replies)
Discussion started by: vettec3
4 Replies
4. Shell Programming and Scripting
Hi All,Our sftp connection from Solaris to windows 2008 hangs with following verbose output. From the output I can see that the connection itself ( key matching ) is successful , but I can't see sftp prompt.Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data... (1 Reply)
Discussion started by: rahulkav
1 Replies
5. Shell Programming and Scripting
Hi ,
we are writing a shell script to test connection of our destination servers and facing an issue if the destination server doesnt respond. we are using the following command.,
sftp -B /dev/fd/0 <host@servername> << EOF >> file.txt
quit
EOF
---------
The above command hangs for 20min and... (0 Replies)
Discussion started by: mohanpadamata
0 Replies
6. Solaris
Hey all,
Has anyone had this problem?
I am using Reflection X to xterm to a Sol 10 box from a Win XP box. I set the display variable on the Sol:
DISPLAY=xxx.xxx.xxx.xxx:0.0
export DISPLAY
I then try to run the exe but the xterm states it cannot display to the IP. I can get this to work... (2 Replies)
Discussion started by: aeroforce
2 Replies
7. Shell Programming and Scripting
hi,
I have installed WRQ Reflection Suite version 12.0 on my machine.how to configure it? Please suggest me what are the steps after installation? (0 Replies)
Discussion started by: sreelu
0 Replies
8. Programming
I am writing java application on windows.
There are more than 100 threads run within java.exe.
I want to know what threads run within process java.exe so that I can find out if there are abnormal java threads. (4 Replies)
Discussion started by: mika
4 Replies
9. Windows & DOS: Issues & Discussions
hi all
in our office we have windows 2003 server for one particular application designed by our team need one service must be running on windows server now when we run process from any user it runs till that user is logged in as soon as he logs off service stops running.
we had win 2000... (1 Reply)
Discussion started by: zedex
1 Replies
10. Shell Programming and Scripting
Hi All,
I tried searching for this, but I have yet to find anything useful. So here goes,
if a script executed from another script with nohup & hangs, does it affect the parent script? Reason I ask, we have a windows box with NFS, and we use it to store some of our files. Currently, I mount the... (2 Replies)
Discussion started by: Sully
2 Replies
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)