This is what I got:
Notice that the password has been truncated. The Shell is trying to substitute a variable called $h673sp . Escape the $ with \$ (or change the password so it does not include Shell special characters.
Also I would lose the line starting "#cd" because the commands are going to ftp not Shell.
Personally I would left-justify all the commands to ftp.
Hi all,
I have a simple script that runs each night and transfers a number of files to a remote server. Before files are transferred existing files on the remote box are deleted. All works OK except the deletion part on the remote box returning no such file or directory. As work around Ihave... (2 Replies)
I am really new to unix and want to setup an ftp server on my PC
I am running a Ultra 5 with solaris 9 on it.
I cannot seem to find *any* documentation on how to do this. So I was hoping somebody could point me in the right direction.
:confused: (3 Replies)
Hi,
I'm attempting to FTP several files using MGET. My problem is that I need to cd to a directory with this naming convention:
YYMMDDHHMM - where the hour and minute is unknown
When I issue cd /ftpdirectory/YYMMDD* from FTP, I receive "No such file or directory
I need a way to get the... (6 Replies)
When a user FTP's to their own directory, they can go up the directory and view others files, of course they can not overwrite them but are able to download them if they wish to, is there any way to stop them from view their files and have them be only able to view files that they have permissions... (3 Replies)
Once a file is ftped to a server is there a way that you can prevent that file from being overwritten if the same process tries to ftp a file with the same name again? (6 Replies)
I'm basically trying to FTP a file to a differnt node, first putting the FTP commmands into a text file and then piping the commands file into the ftp command as follows....
echo "user $USERNAME $PASSWORD" > ftp_cmds
echo "put $SQLOUT /users/$USERNAME/$SQLOUT" >> ftp_cmds
echo "quit" >>... (4 Replies)
How do you limit an ftp user access to a certain Unix path when putting/getting file to/from your server? And how do you restrict the ftp user from using "cd" or "ls" commands? Given that the ftp user knows the ftp userid, password, and your server ip address.
Thanks in advanced :) (1 Reply)
Hi All,
I'm new to this group and this is my first post to this group.
I need to write a shell script for the requirement given below:
1. I need to connect to a ftp server with my username and password
2. I need to go to some(input) directory.
3. I will have files with same names and... (1 Reply)
Hi,
i have a simple question here--
if we dont use binary while doing a ftp of a file,any sort of problem can arise from this or it is ok.
Thanks (2 Replies)
HI
In my script its like this
------------
echo "Enter filename"
read fname
ftp -v -n abcd.efh.kk.com << EOF
user userid pwd
bin
mget $fname.tar--not working if i give "$fname", works only as "demo.tar"
bye
------------
My target is to get a $fname.tar from a remote host.How... (4 Replies)
Discussion started by: coolkid
4 Replies
LEARN ABOUT OSX
ftp_geturl
ftp::geturl(n) ftp client ftp::geturl(n)
__________________________________________________________________________________________________________________________________________________NAME
ftp::geturl - Uri handler for ftp urls
SYNOPSIS
package require Tcl 8.2
package require ftp::geturl ?0.2.1?
::ftp::geturl url
_________________________________________________________________DESCRIPTION
This package provides a command which wraps around the client side of the ftp protocol provided by package ftp to allow the retrieval of
urls using the ftp schema.
API
::ftp::geturl url
This command can be used by the generic command ::uri::geturl (See package uri) to retrieve the contents of ftp urls. Internally it
uses the commands of the package ftp to fulfill the request.
The contents of a ftp url are defined as follows:
file The contents of the specified file itself.
directory
A listing of the contents of the directory in key value notation where the file name is the key and its attributes the asso-
ciated value.
link The attributes of the link, including the path it refers to.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category ftp of
the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
ftpd, mime, pop3, smtp
KEYWORDS
ftp, internet, net, rfc 959
CATEGORY
Networking
ftp 0.2.1 ftp::geturl(n)