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
MOUNT_FTP(8)						    BSD System Manager's Manual 					      MOUNT_FTP(8)

NAME
mount_ftp -- mount a FTP filesystem SYNOPSIS
mount_ftp [-i] [-o options] ftp://host[:port][/path] node DESCRIPTION
The mount_ftp command mounts a FTP-enabled server directory at ftp://host[:port][/path] at the mount point indicated by node. If the -i option is not used, all the required information to establish a login to the remote server must be available in the ftp URL, including username & password if needed. The user ID for all files and folders is set to the user's real user ID. The group ID for all files and directories is set to unknown, and the permissions default to read and execute for user, group and other. The options are: -i Interactive mode, you are prompted for the username and password if you did not supply one in the url. -o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. The rdonly option will be set even if it was not specified because mount_ftp does not allow files to be opened with write access on servers. ftp://host[:port][/path] The FTP-enabled server directory to mount as a volume. If port is not specified, then port 21 is used. If path is not specified, then the path "/" is used. node Path to mount point. EXAMPLES
The following example illustrates how to mount the FTP-enabled server directory ftp.apple.com/ at the mount point /Volumes/mntpnt/ mount_ftp ftp://ftp.apple.com/ /Volumes/mntpnt/ SEE ALSO
mount(2), unmount(2), mount(8) HISTORY
The mount_ftp command first appeared Mac OS X Version 10.2. RETURN VALUES
0 mount_ftp successfully mounted the server directory. [ENOENT] The server directory could not be mounted by mount_ftp because the node path is invalid. [ENODEV] The server directory could not be mounted by mount_ftp because it is not FTP-enabled or because it does not exist, or because node does not have proper access. [ECANCELED] The server directory could not be mounted by mount_ftp because the user did not provide proper authentication credentials. BUGS
mount_ftp only supports mounting read-only. Mac OS X June 6, 2003 Mac OS X