When run from shell the *.* is being expanded by the shell in server1 to a list of filenames from the current directory.
To prove this, try a single line shell script. This does not work from the command line - it must be in a shell script.
Note that it only lists those files which contain a "." in their name.
We need to protect the asterisks from the shell by quoting them.
By the way this is unix not MSDOS. The "." is not significant in filenames though there is a convention to use it to mean filetype. Unless you want to only transfer files containing a "." in their name we would use "*" rather than "*.*".
Last edited by methyl; 03-19-2010 at 10:46 AM..
Reason: layout
hey,
I was wondering if its possible to use a complete path and file name using the mget command example
mget /dir1/dir2/dir3/file.ext
or
get /dir1/dir2/dir3/file.ext
because whenever i try its says file not found or permission denied.....
but if i do
cd dir1
cd dir2
cd dir3
mget... (2 Replies)
Hi,
I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows.
-rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip
-rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip
-rw------- 1 autosys autosys 14592 Aug 19... (1 Reply)
Hi,
I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows.
-rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip
-rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip
-rw------- 1 autosys ... (1 Reply)
I have a automated FTP script that gets a file using mget. I am using mget because the date will change on the file frequently. The mget works, however if I incorrectly type the file (e.g. if I want to get /dog123 and I enter /dg*) I do not receive and error code from in the FTP session. The... (1 Reply)
Hi calling a batch file with FTP commands from Visual basing with Shell, it basically to copy files then delete them.
The delete seems to work but the copy, it looks like the mget command doesn't have the complete information on where to copy the files.
Here is the batch file content.
Open... (2 Replies)
For the below mentioned code..Files are getting transferred from first mget statement alone ie from /home/Arun/*EF01/...Could someone help me regarding this
ftp -vn <<EOD >$LOG
open
user
lcd
ascii
mget /home/Arun/*EF01/GLHEC*
mget /home/Arun/*EF03/GLHEC*
mget... (3 Replies)
Hi,
I have searched everywhere for an answer to this question but couldn't find one so I ask it here.
From an AIX 5.3 machine I ftp to another AIX 5.3 server. I want to get all files and only files in a directory. This directory has a subdirectory with files in it.
In ftp, I enter the... (5 Replies)
I am writing a scritp in which first step is to get some files from a server.
I am using mget to do that.
here is my FTP code ...
HOST="XXX.XXX.com"
28 ftp -inv $HOST <<END &> $FTP_LOG
29 quote USER $USER
30 quote PASS $PASWD
31 cd log
32 prompt off
33 binary
34 mget... (0 Replies)
Hey All,
first post :rolleyes:
So I am writting a script to pull down files from an ftp that will be called from a bat file on windows. This seems pretty straight forward, and grabs all of the "files" in the cd location, but I am running into some permission issue that will not allow me to... (1 Reply)
Discussion started by: mpatton
1 Replies
LEARN ABOUT NETBSD
ypinit
YPINIT(8) BSD System Manager's Manual YPINIT(8)NAME
ypinit -- initialize NIS subsystem
SYNOPSIS
ypinit -c [domainname] [-l server1,...,serverN]
ypinit -m [domainname] [-l server1,...,serverN]
ypinit -s master_server [domainname] [-l server1,...,serverN]
DESCRIPTION
ypinit initializes the files and directories that are required for a NIS client or server.
If domainname isn't specified, the default domain (as returned by domainname(1)) is used.
The following options are available:
-c Create a NIS client. Initializes /var/yp/binding/<domain>.ypservers to contain a list of ypservers for ypbind(8) to connect to.
-l server1,...,serverN
Set the list of client servers from the command line rather than prompting for them interactively. The format is a comma separated
list of server names with no spaces.
-m Create a master NIS server. Generates map data from local files (/etc/master.passwd, /etc/group, etc.).
-s master_server
Create a slave server. Downloads the maps from master_server, which should be the active master NIS server.
To rebuild or refresh the maps for the NIS domain <domain>, change to the /var/yp/<domain> directory and run make.
FILES
/var/yp master NIS directory; contains the template makefiles.
/var/yp/<domain> directory to store NIS maps for <domain>.
/var/yp/binding/<domain>.ypservers
list of NIS servers to bind to.
SEE ALSO domainname(1), make(1), makedbm(8), mknetid(8), nis(8), stdethers(8), stdhosts(8), ypbind(8), yppush(8), ypserv(8)AUTHORS
Originally written by Mats O Jansson <moj@stacken.kth.se>. Modified by Jason R. Thorpe <thorpej@NetBSD.org>.
BSD February 26, 2005 BSD