FtpPwd(3) Library Functions Manual FtpPwd(3)NAME
FtpPwd - Determine current working directory on server.
SYNOPSIS
#include <ftplib.h>
int FtpPwd(char *path, int max, netbuf *nControl);
PARAMETERS
path A pointer to a buffer where the result should be returned.
max Specifies the size of the user's buffer.
nControl
A handle returned by FtpConnect().
DESCRIPTION
FtpPwd() attempts to determine the current default directory at the server and return it to the user's buffer.
RETURN VALUE
Returns 1 if successful or 0 on error.
FTPlib 20 June 1998 FtpPwd(3)
Check Out this Related Man Page
LFC_GETCOMMENT(3) LFC Library Functions LFC_GETCOMMENT(3)NAME
lfc_getcomment - get the comment associated with a LFC file/directory in the name server
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_getcomment (const char *path, char *comment)
DESCRIPTION
lfc_getcomment gets the comment associated with a LFC file/directory in the name server.
path specifies the logical pathname relative to the current LFC directory or the full LFC pathname.
comment
points at a buffer to receive the comment. The buffer must be at least CA_MAXCOMMENTLEN+1 characters long.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOENT The named directory does not exist or is a null pathname or there is no comment associated with this path.
EACCES Search permission is denied on a component of the path prefix or the caller effective user ID does not match the owner ID of
the file or read permission on the file/directory itself is denied.
EFAULT path or comment is a NULL pointer.
ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), lfc_chdir(3)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2010-12-13 11:48:43 +0100 (Mon, 13 Dec 2010) $ LFC_GETCOMMENT(3)
I have a script that is run each night by cron. This script generates an extract then places it into an 'extracts' folder and also ftp's a copy to another server.
I have set up the script to remove any files in the extracts folder greater than 28 days old (this occurs each time the script is... (1 Reply)
Hi all,
I am trying to write a program that will automate interactive scripts that use 'pkgadd'. Easily enough I can use 'pkgask' and a response file for most of what I want to do, but unfortunately there are parts of some pkg installations that are configured to only take input from /dev/tty!!... (2 Replies)
I am facing problem while accesing FTP related commands in nawk code in bourne shell programming.I can able to connect to remote machine, but i can't able to get files from that machine.
Please help me in this.If you send code along with the solution, then it will be usefull for me. (4 Replies)
I need some help trying to figure out why our ftp account keeps getting locked with no manual intervention. We have end of day processes that run nightly and the last thing it does is ftp files to a server. Everyonce in a while the script fails because the account has been locked. How could this... (5 Replies)
I am having Oracle export script, in that FTP part only given below
ftp -n <<END
open $Server
user $FtpUser $FtpPwd
cd $FtpPath
binary
put $Tablename.flg
put $Filename.gz
bye
END
Now I want to get the... (3 Replies)
I am have FTP syntax like below in my bash shell script
ftp -n <<END
open $Server
user $FtpUser $FtpPwd
cd $FtpPath
binary
put $Filename.gz
bye
END
Now I wanted to change this into SFTP. I tried... (4 Replies)
Iam using the teradata...
and running the scripts in unix,
I wan to encrypt the teradata password in Unix...
my hostname is : bprod
usename: KRN777
passwrd: passwrd
can ant one tell me the exact command to encrypth the passwrd....
thanks, (5 Replies)
Hi All,
I am trying to use expect command in my shell script and it works fine if I have only expect. To it if I add a custom function which calls a PL/SQL procedure the shell errors saying
invalid command name "File_Entry()"
while executing
"File_Entry()"
In the script the first... (4 Replies)
Hi! I am new to unix and this forum as well..
Can someone please help me :
I want to "get/mget" files which are older than 10 minutes from a remote FTP server like "ftp.com".
After getting the files to local unix server say "Prod.com" , i need to delete only those files from ftp.com which... (4 Replies)
Hi,
I am trying to turn verbose on for sftp but i get message to look lftp options.
SFTP_LOG=`lftp -u $P_USERID,$P_PSWD sftp://$P_HOSTNAME <<EOF
cd $P_DEST_DIR
mput $P_FILE_PREFIX
bye
EOF`
The above one works fine but i don't see the debugging details\log details.
I want... (7 Replies)