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(4) File Formats netrc(4)
NAME
netrc - file for ftp remote login data
DESCRIPTION
The .netrc file contains data for logging in to a remote host over the network for file transfers by ftp(1). This file resides in the
user's home directory on the machine initiating the file transfer. Its permissions should be set to disallow read access by group and oth-
ers (see chmod(1)).
The following tokens are recognized; they may be separated by SPACE, TAB, or NEWLINE characters:
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 EOF is reached or another machine token is encountered.
default 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. The default token is normally used as follows:
default login anonymous password user@site
Such an entry gives the user automatic anonymous ftp login to machines not specified in .netrc.
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: if this token is present in the .netrc file, 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 supplies the specified string if
the remote server requires an additional account password. If the remote server does not require an additional account
password, the auto-login process will initiate an ACCT command.
macdef name Define a macro. This token functions the same as ftp macdef. A macro is defined with the specified name; its contents
begin with the next .netrc line and continue until a null line (consecutive NEWLINE characters) is encountered. If a macro
named init is defined, it is automatically executed as the last step in the auto-login process.
EXAMPLES
Example 1: A Sample .netrc File
A .netrc file containing the following line:
machine ray login demo password mypassword
allows an autologin to the machine ray using the login name demo with password mypassword.
FILES
~/.netrc
SEE ALSO
chmod(1), ftp(1), in.ftpd(1M)
SunOS 5.10 3 Jul 1990 netrc(4)