Hi All,
I have written a script that transfers(FTP) files from Unix system to MVS system.
Below is the code for it.
ftp -inv $HOST<<ftp_test
quote site LRECL=200
quote site BLKSIZE=28000
mput SOURCE DEST
ftp_test
Here I need the help, if the above code can get... (3 Replies)
Hi all,
I have command to connect gateway server
iam in home directory/> ssh root@mrp-gateway
root@mrp-gateway:/root> sftp -v msgGoogle@126.132.45.123
sftp/>dir
upload --> folder
sftp/upload/ls
-------------
8990.txt
kittu.txt
8989.txt
i have an requirement to print files list which... (2 Replies)
Hi!!
SFTP5.0 is not working thru automatically pushing files, but manual file transfer is happening fine...
If anyone knows,Pls share the reason.
Regards,
Senthil (3 Replies)
Hi,
I want to try to connect to a DB2 (MVS) database from an AIX, through my c++ custom program. Is anybody who knows how can I do this? Which libraries should I use? Should I have a DB2 connect installed on my AIX?
Thank you in advance. (3 Replies)
hi,
i have to type a script that connect to a server SFTP(password not required) and run some easy command (e.g. ls,rm,mv,etc...).
I wrote into the script the connection-string and the other commands.
When I run it, it connects perfectly to the server but it stops at the home.
Here is... (8 Replies)
Hi Friends,
I have created a shell and which will sftp file1 from serverA to serverB. In sftp prompt on serverA it is showing the file1 is available on serverB. where as when connected to ServerB it is not showing the file1. How come this.
ServerA
sftp> ls
hsstest.dmp
sftp> pwd
Remote... (9 Replies)
Hi All,
I have a ftp link as "ftp://ftp1.xyz.org/abc_ike/". The same thing is opening fine when I use a browser. But I am not sure how to connect to the above link from console. I used the command
ftp ftp1.xyz.org
The above is not working. I am not getting any error it simply stands still.... (1 Reply)
Hi experts,
While trying to sftp from one the red hat linux box it is giving following error.
Status: Connecting to 10.1.82.155...
Response: fzSftp started
Command: open "prodbill@10.1.82.155" 22
Command: Pass: *********... (2 Replies)
Hi,
I am trying to connect to a windows server via sftp from a user A and my job did log into it via user B. So I uses the following command to connect to teh new server.
B>sftp -o IdentityFile=/pathtofile/id_rsa a@windows_server
and it worked. But I don't want to use private key. Can we... (6 Replies)
I'm trying to transfer a 1 GB file using sftp process. The process always gets disconnected in between (may be after 20%) file transfer when it runs from a batch script. If i do it in interactive mode, it works.. I checked with account admin to see the timeout option if any, but didn't help..... (2 Replies)
Discussion started by: Aswin Pillai
2 Replies
LEARN ABOUT DEBIAN
libssh2_sftp_rmdir_ex
libssh2_sftp_rmdir_ex(3) libssh2 manual libssh2_sftp_rmdir_ex(3)NAME
libssh2_sftp_rmdir_ex - remove an SFTP directory
SYNOPSIS
#include <libssh2.h>
#include <libssh2_sftp.h>
int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path,
unsigned int path_len);
DESCRIPTION
Remove a directory from the remote file system.
sftp - SFTP instance as returned by libssh2_sftp_init(3)
sourcefile - Full path of the existing directory to remove.
sourcefile_len - Length of the full path of the existing directory to remove.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_SOCKET_TIMEOUT -
LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be
returned by the server.
SEE ALSO libssh2_sftp_init(3)libssh2 0.15 1 Jun 2007 libssh2_sftp_rmdir_ex(3)