We seem to have a fundamental problem here.
The error messages are "Unknown .netrc keyword".
The sole and only purpose of a the file called ".netrc" is to hold the username and password to access a remote ftp server. One line per server:
e.g.
machine myservername login myaccount password mypassword
The commands to ftp should not be in the ".netrc" file.
In essence the answer is:
The "ftp" will read a correctly formatted ".netrc" file to find out the password (providing that the .netrc file is in the right place and has the right permissions).
If this doesn't crack it, please mention what Operating System (and version) and what Shell you are using.
@scottn
I see what you mean but the ".netrc" quoted is not valid on normal "ftp" because the "machine" line is split into multiple lines. I didn't notice the "macdef" line ... but I now believe it to be surplus.
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
I'm having few doubts with below questions not able figure out the reason:
mput operation used via shell script failed with 550 code return from FTP - "Overwrite cannot be done". ( Having all permissions to this directory ) but why got failed.
When trying to run the script again but now it... (3 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
I want to mput a file without extension, and while doing the mput i want to include the .txt as an extension to the file name. How can i do that? (2 Replies)
I am ptting the following into an FTOP script.
date=`TZ="aaa24" date +'%Y%m%d'` # this gets Yesterday date
.
.
.
.
mput < 'l | grep $Vdate'
# the idea to grep a listing from a directory that has yesterday date in its file name then put it in the remote FTP server. How can I get it... (4 Replies)
Hi guys,
I'm having a problem with F-Secure Unix.
When I try a simple command;
sftp> put local.test remote.test
I expect that the local file local.test would be copied to the remote file remote.test
However sftp is attempting to copy local.test & remote.test from the local machine, as if... (2 Replies)
1)In this script mput command is not working( not transfering multiple files, it is able to send single file)
2)here is the script to automate the ftp process .
3)for transfering files from one machine to other machine using ftp
can anyone can give me the solution in this issue
Script is... (6 Replies)
I am trying to upload via FTP 11,000 files in a Solaris 8 system. I am using Windows 2000 and its FTP client to upload the files. The command used is mput *.jpg.When the quantity of files reaches 10,000 the upload aborts.
Is this problem related with the FTP client ? If yes, another FTP client... (2 Replies)
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
hello,
i was interested in knowing if you can mget or mput a sequence of files:
example- say i have a dir with 1000 files with the same extension e.g. *.sgi,
is there a way to mget only the last 200 files?
i would assume that there is a flag i would use, or something like:
mget... (14 Replies)