10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have this FTP script:
ADDR=168.218.95.172
ftp -inv $ADDR <<- ftpcmds
user HEHCFTP H$h673sp ... (3 Replies)
Discussion started by: lena keung
3 Replies
2. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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)
Discussion started by: namishtiwari
2 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: djkane
4 Replies
6. Shell Programming and Scripting
Is ther a way to change the drive letter on the target (remote) system from inside the FTP program?
I am playing with an FTP script between two internal systems at my company. My problem is I land on the wrong drive when connecting with FTP, and I want to be able to change drives in order to be... (3 Replies)
Discussion started by: southpaw
3 Replies
7. Shell Programming and Scripting
How do I setup a parameter driven executable script which FTP's a file (input as a parameter) in Unix (AIX) to my desktop (Windows) ?
For example I would ideally like to do this -
Unix Prompt> FtpFetch abc.log
and get this abc.log on my desktop.
Thanks to anyone that can help! I am... (1 Reply)
Discussion started by: kapjag
1 Replies
8. UNIX for Advanced & Expert Users
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)
Discussion started by: lesstjm
6 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: foresthillian
3 Replies
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: ls=dir
3 Replies
NETRC(5) BSD File Formats Manual NETRC(5)
NAME
netrc -- user configuration for ftp
SYNOPSIS
~/.netrc
DESCRIPTION
This file contains configuration and autologin information for the File Transfer Protocol client ftp(1).
The .netrc file contains login and initialization information used by the auto-login process. It resides in the user's home directory. The
following tokens are recognized; they may be separated by spaces, tabs, or new-lines:
machine name
Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the remote
machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent .netrc tokens are
processed, stopping when the end of file is reached or another machine or a default token is encountered.
default This is the same as machine name except that default matches any name. There can be only one default token, and it must be after
all machine tokens. This is normally used as:
default login anonymous password user@site
thereby giving the user automatic anonymous ftp login to machines not specified in .netrc. This can be overridden by using the -n
flag to disable auto-login.
login name
Identify a user on the remote machine. If this token is present, the auto-login process will initiate a login using the specified
name.
password string
Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires
a password as part of the login process. Note that if this token is present in the .netrc file for any user other than anonymous,
ftp will abort the auto-login process if the .netrc is readable by anyone besides the user.
account string
Supply an additional account password. If this token is present, the auto-login process will supply the specified string if the
remote server requires an additional account password, or the auto-login process will initiate an ACCT command if it does not.
macdef name
Define a macro. This token functions like the ftp macdef command functions. A macro is defined with the specified name; its con-
tents begin with the next .netrc line and continue until a null line (consecutive new-line characters) is encountered. If a macro
named init is defined, it is automatically executed as the last step in the auto-login process.
SEE ALSO
ftp(1), ftpd(8)
Linux NetKit (0.17) September 23, 1997 Linux NetKit (0.17)