03-19-2010
I know that ur code will work fine. As this is a part of an automation script i cannot use urs. Please let me know what is wrong in the code posted by me.?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: Ganondorf
2 Replies
2. UNIX for Advanced & Expert Users
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)
Discussion started by: spatra
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: spatra
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: dog123
1 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: Mario120560
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: infernalhell
3 Replies
7. AIX
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)
Discussion started by: bheinsius
5 Replies
8. Shell Programming and Scripting
In the script I am doing a mget for multiple files. How can I exclude just one file which I do not need to ftp ? (3 Replies)
Discussion started by: jville
3 Replies
9. Shell Programming and Scripting
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)
Discussion started by: shashidhar
0 Replies
10. UNIX for Dummies Questions & Answers
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 DEBIAN
dh_metainit
DH_METAINIT(1) User Contributed Perl Documentation DH_METAINIT(1)
NAME
dh_metainit - install metainit files into package build directories
SYNOPSIS
dh_metainit [debhelper options] [--name=name] [-n] [-o]
DESCRIPTION
dh_metainit is a debhelper program that is responsible for installing metainit files (for further creation of initscripts via the update-
metainit facility) into package build directories.
It also automatically generates the postinst and postrm and prerm commands needed to create the appropriate initscripts for the init system
employed on the user machine.
Important: If generated postinst script finds /etc/init.d/ or /etc/default files with the same name as the shipped metainit files, and
these are conffiles from non-installed packages (probably earlier version of this package) they are removed (or renamed if the user has
modified them). This works only if the name of the new metainit is the same as the name of the old init.d and default file, otherwise you
will have to remove these files yourself. See http://wiki.debian.org/DpkgConffileHandling for that.
If a file named debian/package.metainit exists, then it is installed into etc/metainit/package in the package build directory, with "pack-
age" replaced by the package name.
OPTIONS
-n, --noscripts
Do not modify postinst/postrm/prerm scripts.
-o, --onlyscripts
Only modify postinst/postrm/prerm scripts, do not actually install any metainit files. May be useful if the init script is shipped
and/or installed by upstream in a way that doesn't make it easy to let dh_metainit find it.
--name=name
Install the metainit script using the filename name instead of the default filename, which is the package name. When this parameter is
used, dh_metainit looks for and installs files named debian/package.name.metainit, instead of the usual debian/package.init.
--error-handler=function
Call the named shell function if running the init script fails. The function should be provided in the prerm and postinst scripts,
before the #DEBHELPER# token.
NOTES
Note that this command is not idempotent. "dh_clean -k" should be called between invocations of this command. Otherwise, it may cause mul-
tiple instances of the same text to be added to maintainer scripts.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Urs Ganse <urs@nerd2nerd.org> based on dh_installinit by Joey Hess <joeyh@debian.org>
perl v5.8.8 2007-07-30 DH_METAINIT(1)