Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ftppwd(3) [debian man page]

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)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find, remove, and ftp......

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)
Discussion started by: peter.herlihy
1 Replies

2. Shell Programming and Scripting

Automating interactive scripts

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)
Discussion started by: bookoo
2 Replies

3. Shell Programming and Scripting

using FTP related commands in nawk utility in shell programming

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)
Discussion started by: nrsekhar
4 Replies

4. Shell Programming and Scripting

How to combine to flat files which are there in remote server ?

:mad: I have to write a script in informatica, which is used to combine two remote flat files (3 Replies)
Discussion started by: srinivasaraju.m
3 Replies

5. Solaris

ftp account locking

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)
Discussion started by: morgadoa
5 Replies

6. Shell Programming and Scripting

FTP feed back mail

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)
Discussion started by: sbmk_design
3 Replies

7. Shell Programming and Scripting

sftp syntax in script

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)
Discussion started by: sbmk_design
4 Replies

8. Shell Programming and Scripting

Encrypting the password

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)
Discussion started by: nani1984
5 Replies

9. UNIX for Advanced & Expert Users

Using expect with other custom functions

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)
Discussion started by: dassv
4 Replies

10. UNIX for Advanced & Expert Users

Help with get/mget from FTP server with files older than 10 minutes

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)
Discussion started by: SravsJaya
4 Replies

11. Shell Programming and Scripting

Problem in turn verbose on in sftp

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)
Discussion started by: consat
7 Replies