FTP - remote access


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP - remote access
# 1  
Old 01-18-2006
FTP - remote access

Hi All,

I want to ftp a file from Windows 2000 to Unix. The file is present in a remote server which has been mapped to one of my drives. I am not able to connect to that directory.

I am getting an error saying
?Invalid command
550 //hbxs02/shared No such file or directory.

The directory "//hbxs02/shared" is on a remote windows 2000 server.
I can ftp the file manually but I can do it using a shell script.

The code which I have used is as follows:

rm ftp_log
FTP_SERVER=xy112z
FTP_USERID=yellow
FTP_PASSWD=orange
REMOTE_DIR="//hbxs02/shared"
export REMOTE_DIR
LOGFILE_TMP=/export/home/Scripts/ftp_log
LOG_MSG="Starting the ftp process"
echo $LOG_MSG > $LOGFILE_TMP
/usr/bin/ftp -i -v -n ${FTP_SERVER} <<EOT >> ${LOGFILE_TMP}
user ${FTP_USERID} ${FTP_PASSWD}
pwd > $LOGFILE_TMP
#lcd "${REMOTE_DIR}" > $LOGFILE_TMP
cd $REMOTE_DIR > $LOGFILE_TMP
bye
EOT

Please help in figuring the exact problem. I tried searching the forum but couldn't get any help.

Thanks
Shash
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Remote Access vs Local Access

Dear Friends, This is not a problem , it's a course work (UNIX scenario).... As part of it I am searching Remote Attacks and find points as 1. Exploiting a listening service 2. Routing through Unix system that is providing security between 2 or more networks 3. User initiated Remote execution... (1 Reply)
Discussion started by: anespa
1 Replies

2. UNIX for Dummies Questions & Answers

Remote FTP Backup -Tar archive+ encrypt+ split to a remote ftp

I have a huge directoy(200+ gb) for backup. I want upload the tar file(split files) simultaneous to a remote ftp. (pipeline, stdout, stdin etc.) I don't want write a data to local hdd. I have a ssd hdd. thanks. this code doesn't work.( yes i know the problem is split command!) tar cvzf -... (8 Replies)
Discussion started by: tara123
8 Replies

3. AIX

ftp access without shell access

Hi all, I'm using AIX v 5.3 I want to create system users to access through ftp or sftp and restrict those users into specific directory and don't traverse the whole file system just to be restricted within a directory and don't get shell access . i don't want to use any other third party... (7 Replies)
Discussion started by: h@foorsa.biz
7 Replies

4. Solaris

Remote Access to Application

Hi All, I have an application which I wanted to install on one solaris server instead of installing it on 6 solaris servers and then users should be able to access this application via one of those 6 servers. I think NFS is one of the option. Is there any other way we can invoke this application... (6 Replies)
Discussion started by: sam101
6 Replies

5. Red Hat

remote kde access

Hi, How can i get the kde desktop/console screen on a on PC. Do we have a kde is client or so ? I have exceed installed on my windows pc but i do not know how to get the same screen as the console of the server. Thanks in advance ! ---------- Post updated at 05:21 PM ---------- Previous... (2 Replies)
Discussion started by: uxadmin007
2 Replies

6. UNIX for Dummies Questions & Answers

Remote Access to FTP server not working

I am trying to setup an FTP server in a Fedora Core 3 machine through the command line interface and not KDE. I think I am successful in getting the ftp service running, as when I do an ftp 127.0.0.1, I am able to log in using any one the user accounts I have created on this machine and browse... (8 Replies)
Discussion started by: cooljumbo2k8
8 Replies

7. Solaris

How do I disable Remote Access ?

During the Solaris 10 installation, I answered "Yes" at the "Activate Remote Access" screen - or something like that. I know this is a security issue and I want it disabled now. How can I disable remote access ? Thanks. (4 Replies)
Discussion started by: chinezu'
4 Replies

8. Shell Programming and Scripting

remote server access

hi everybody, im kinda a new to scripting.... i have attached an image in this post... my goal is to extract data from the remote servers (server1,2,3 as in figure) to the server residing locally.... the criterias are: * I should not pass the password across the remote servers. *... (1 Reply)
Discussion started by: mercuryshipzz
1 Replies

9. Solaris

Remote Access

Hi We access all our SPARC/x86 servers (Solaris 8,9 & 10) using ssh. I am looking for a open source tool that allows me to get the GUI on to my laptop. I tried with x-org and some other applications like Hummingbird. Encountered problems with license issues and CPU compatability of my laptop. ... (2 Replies)
Discussion started by: chrs0302
2 Replies

10. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question
ncftpls(1)						      General Commands Manual							ncftpls(1)

NAME
ncftpls - Internet file transfer program for scripts SYNOPSIS
ncftpls [options] ftp://url.style/host/path/name/ OPTIONS
Command line flags: -m Use a machine readable list format, if the server supports it. This requires that the server software support the MLSD extensions, and many implementations do not have these features. -1 Most basic format, one item per line. -l Long list format. -C Columnized list format. This is the default list format. -R Recurse all subdirectories while listing. -a Show all files, if server allows it (as in "/bin/ls -a"). -i XX Filter the listing (if server supports it) with the wildcard XX. -x -XX Set the ls flags to use on the server. -u XX Use username XX instead of anonymous. -p XX Use password XX with the username. -P XX Use port number XX instead of the default FTP service port (21). -d XX Use the file XX for debug logging. -t XX Timeout after XX seconds. -E Use regular (PORT) data connections. -F Use passive (PASV) data connections. The default is to use passive, but to fallback to regular if the passive connection fails or times out. -r XX Redial a maximum of XX times until connected to the remote FTP server. -W XX Send raw FTP command XX after logging in. -X XX Send raw FTP command XX after each file transferred. -Y XX Send raw FTP command XX before logging out. The -W, -X, and -Y options are useful for advanced users who need to tweak behavior on some servers. For example, users accessing mainframes might need to send some special SITE commands to set blocksize and record format information. For these options, you can use them multiple times each if you need to send multiple commands. For the -X option, you can use the cookie %s to expand into the name of the file that was transferred. -o XX Set advanced option XX. This option is used primarily for debugging. It sets the value of an internal variable to an integer value. An example usage would be: -o useFEAT=0,useCLNT=1 which in this case, disables use of the FEAT command and enables the CLNT command. The available variables include: usePASV, useSIZE, useMDTM, useREST, useNLST_a, useNLST_d, useFEAT, useMLSD, useMLST, useCLNT, useHELP_SITE, useSITE_UTIME, STATfileParamWorks, NLSTfileParamWorks, require20, allowProxyForPORT, doNotGetStartCWD. DESCRIPTION
The purpose of ncftpls is to do remote directory listings using the File Transfer Protocol without entering an interactive shell. This lets you write shell scripts or other unattended processes that can do FTP. The default behavior is to print the directory listing in columnized format (i.e. ls -CF), but that is not very useful for scripting. This example uses the -1 flag, to print one file per line: $ ncftpls -1 ftp://ftp.ncftp.com/pub/ncftp/ You can also do a remote "ls -l", by using "ncftpls -l". If you want to try other flags, you have to use them with the -x flag. For exam- ple, if you wanted to do a remote "ls -lrt", you could do this: $ ncftpls -x "-lrt" ftp://ftp.ncftp.com/pub/ncftp/ By default the program tries to open the remote host and login anonymously, but you can specify a username and password information like you can with ncftpget or ncftpput. Note that the standard specifies that URL pathnames are are relative pathnames. For FTP, this means that URLs specify relative pathnames from the start directory, which for user logins, are typically the user's home directory. If you want to use absolute pathnames, you need to include a literal slash, using the "%2F" code for a "/" character. Examples: $ ncftpls -u linus ftp://ftp.kernel.org/%2Fusr/src/ $ ncftpls ftp://steve@ftp.apple.com/%2Fetc/ DIAGNOSTICS
ncftpls returns the following exit values: 0 Success. 1 Could not connect to remote host. 2 Could not connect to remote host - timed out. 3 Transfer failed. 4 Transfer failed - timed out. 5 Directory change failed. 6 Directory change failed - timed out. 7 Malformed URL. 8 Usage error. 9 Error in login configuration file. 10 Library initialization failed. 11 Session initialization failed. AUTHOR
Mike Gleason, NcFTP Software (http://www.ncftp.com). SEE ALSO
ncftpput(1), ncftpget(1), ncftp(1), ftp(1), rcp(1), tftp(1). LibNcFTP (http://www.ncftp.com/libncftp/). ncftpls NcFTP Software ncftpls(1)