Originally posted by zazzybob For a start, the user@hostname: bit should come before destfile, e.g.
If your source and target machines support scp, use that instead as it's far more secure.
Cheers
ZB
hi zazzybob,
lets assume i have two unix machine A & B. If i want to copy a file from system B, how will the above command work. My source file is residing on system B.
I try an RCP command from winnt to unix and it works only with 2 pc but with the two others it dosen't work....? MS-DOS return this error msg : 0826-826 The host name for your address is not known.
What can I do to resolve my probleme ?
Dimitri
Geneva - Switzerland (2 Replies)
I am attempting to use "rcp" to transfer files from a linux box(redhat) to a windows 2000 server box and keep getting a "connection refused" message.
Are there any special services/daemons on either side that I need running or any special ports I need open to do this? How about files? I read... (1 Reply)
Hello,
Native XP rcp does not have a password prompt as far as I can see. I require a rcp.exe to copy a file from Sco to my XP pc. I did have this program that was part of pcnfs a few years ago.
I need to run a scheduled batch job from a command line being.
rcp.exe 192.168.5.33 -user root... (0 Replies)
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
my friend asked me to help him installing some sort of unix app on a server running some soft unix(that server runs MRI thing), and the only thing about that server he knows is OS ver 9.1.
So what OS can it be? And normally what type of UNIX OS is installed on a MRI machine?
THanks (1 Reply)
Hi everybody; How are you?
I have a machine with these components
motherboard Gigabyet
processor Intel
RAM Kingstone 1GB
HDD Westerndigital 160GB
DVD ASUS
I use this machine for labs, I was running WinXP
I am now taking one of Sun's exams, I formated the HDD and get... (3 Replies)
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Hi All
I have window 7 ultimate installed on my machine.
i want to install unix just like an application
when i click on the application i should work on unix and when i close that application normal window 7 appears
Example-: like in case of windows suppose we have installed the sql... (6 Replies)
Discussion started by: parthmittal2007
6 Replies
LEARN ABOUT DEBIAN
libssh2_sftp_rename_ex
libssh2_sftp_rename_ex(3) libssh2 manual libssh2_sftp_rename_ex(3)NAME
libssh2_sftp_rename_ex - rename an SFTP file
SYNOPSIS
#include <libssh2.h> #include <libssh2_sftp.h>
int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp, const char *source_filename, unsigned int source_filename_len, const char *dest_filename,
unsigned int dest_filename_len, long flags);
int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp, const char *source_filename, const char *dest_filename);
DESCRIPTION
sftp - SFTP instance as returned by libssh2_sftp_init(3)
sourcefile - Path and name of the existing filesystem entry
sourcefile_len - Length of the path and name of the existing filesystem entry
destfile - Path and name of the target filesystem entry
destfile_len - Length of the path and name of the target filesystem entry
flags - Bitmask flags made up of LIBSSH2_SFTP_RENAME_* constants.
Rename a filesystem object on the remote filesystem. The semantics of this command typically include the ability to move a filsystem object
between folders and/or filesystem mounts. If the LIBSSH2_SFTP_RENAME_OVERWRITE flag is not set and the destfile entry already exists, the
operation will fail. Use of the other two flags indicate a preference (but not a requirement) for the remote end to perform an atomic
rename operation and/or using native system calls when possible.
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_rename_ex(3)