FtpLogin(3) Library Functions Manual FtpLogin(3)NAME
FtpLogin - Login to remote system.
SYNOPSIS
#include <ftplib.h>
int FtpLogin(const char *user, const char *pass,
netbuf *nControl);
PARAMETERS
user Specifies the username.
pass Specifies the password.
nControl
A handle returned by FtpConnect().
DESCRIPTION
FtpLogin() attempts to login to the remote system with the supplied username and password.
RETURN VALUE
Returns 1 if successful or 0 on error.
FTPlib 06 November 1997 FtpLogin(3)
Check Out this Related Man Page
ruserok(3) Library Functions Manual ruserok(3)NAME
ruserok - Allows servers to authenticate clients
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <unistd.h>
int ruserok ( char *host, int root_user, char *remote_user, char *local_user );
PARAMETERS
Specifies the name of a remote host. Specifies a value to indicate whether the effective user ID of the calling process is that of a root
user. A value of 0 (zero) indicates the process does not have a root user ID. A value of 1 indicates that the process has local root user
privileges, and the /etc/host.equiv file is not checked. Points to a username that is valid at the remote host. Any valid username can be
specified. Points to a username that is valid at the local host. Any valid username can be specified.
DESCRIPTION
The ruserok() (remote command user OK) function allows servers to authenticate clients requesting services.
The hostname must be specified. If the local domain and remote domain are the same, specifying the domain parts is optional. To determine
the domain of the host, use the gethostname() function. The ruserok() function checks for this host in the /etc/host.equiv file. Then, if
necessary, the subroutine checks a file in the user's home directory at the server called $HOME/.rhosts for a host and remote user ID.
RETURN VALUES
The ruserok() function returns 0 (zero) if the subroutine successfully locates the name specified by the host parameter in the
/etc/hosts.equiv file or if the IDs specified by the host and remote_user parameters are found in the $HOME/.rhosts file.
If the name specified by the host parameter was not found, the ruserok() function returns a value of -1.
FILES
Contains service names. Specifies foreign hostnames. Specifies the remote users of a local user account.
RELATED INFORMATION
Functions: gethostname(2), rcmd(3), rresvport(3), sethostname(2)
Commands: rlogind(8), rshd(8) delim off
ruserok(3)
Hi ,
I am beginner in aix...
i am using the following command in my shell script to to copy the files from a secured server to my aix box...
/usr/local/bin/scp pickme@brad.wanted.com:../internal/mem_grp_details*
Should i use sleep command in my shell script for the script to copy the... (15 Replies)
Hi All,
I am working on AIX 5.3.
My requirement is to telnet to a server and scp a file from another server
In my shell script i am using telnet to enter to a server and i am echoing the password as below
echo open $Infahost
sleep 1
echo $Infaftplogin
sleep 1
echo $Infaftppasswd... (3 Replies)
Hello All,
I have a issue with the below script that i am using to sftp a file.
sftp -o BatchMode=yes $sftpLogin <<EOF
cd /ftp/cds
get cdstesting.csv
quit
EOF
When i use this, the connetion establishes and the connections doesnt returns from and hangs in the connecting mode. I think... (0 Replies)
why the below script is not working .,
Can any one please help me out.,
for prevfile in $temp; do
prevfile=$prevfile.`date +%D%H%M%S`
mv $prevfile ../../commitments/olddata
done
Raja (14 Replies)
Hi,
I am new to the shell programming.,
My requirement is , I have an shell file, which call internally the sql file, which generates 4 files on the directory., and then shell has to create the file which contains all the ftp commands to extract the files to different server for later... (1 Reply)
Hi!
I'm a beginner at scripting, but have managed to complete a working KSH-script.. :D
But since this is going to production i a few weeks, I would like to optimize it and make it better structured!
The idéa of the script is to collect data from the database, put it in a file, and then... (2 Replies)
How to do ftp from unix to windows
i have some files in a dir in unix box and i want to put those files in windows through FTP. How to do this ? (9 Replies)
What is the "best" library to deal with FTP in C programming language? I've considered libcurl and ftplib (ftplib), but libcurl is designed for HTTP-like protocols (but supports FTP) and ftplib is poor in functionality (no multi-interface, don't know whether is it thread-safe or not, no custom... (6 Replies)
Hi All,
I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Hi all,
I have the following script, but are not too sure about the syntax to complete the script.
In essence, the script must connect to a SFTP server at a client site with username and password located in a file on my server.
Then change to the appropriate directory.
Pull the data to the... (1 Reply)
Hi Guys,
I am trying to capture the FTP Logs in a log file.
I am using the below code.
ftp -d -n -v $Remote_Host << EOD > $Ftp_LOG;
Since iam running the script in debug mode, i am able to see that the ftp is done and the file has been transferred.
But the log file does not have... (7 Replies)
I'm using korn shell and I am wondering if it's possible to use a parameter passed into a function to build a variable name in a configuration file. I have the function in one source file, I'd like to have a global configuration file instead of hardcoding logins to each script.
So I have a... (7 Replies)