Sponsored Content
Full Discussion: mget help
Top Forums UNIX for Dummies Questions & Answers mget help Post 302582667 by vYN on Friday 16th of December 2011 07:15:50 PM
Old 12-16-2011
Quote:
Originally Posted by ryran
First thing to try would be to protect that asterisk from your local shell, i.e.: \*.dem, "*.dem", or '*.dem'
Hmm. It seems that didn't help. still getting the same error...

it looks like it can't CD into that directory..

EDIT1:

i fixed that by changing my script a little. and using "FTP" instead of "LFTP". script:
Code:
#!/bin/sh
#!Configuration
USER=Gudfaren
PASSWD=XXXXX
HOST=ftp.speedgaming.pro
LOCAL=/var/www/match_demos/speedgaming/
REMOTE=89.221.243.11_27500
FILES=*.dem

#!do not change below
cd $LOCAL
ftp -n $HOST <<SCRIPT
user $USER $PASSWD
prompt
binary
cd $REMOTE
mget -f $FILES
quit
SCRIPT

It works. but i want it to not overwrite the existing files on my server that it have already downloaded. And yes. this script will run every 3 hour. So i need to figure out how to make it not overwrite existing files.

Last edited by vYN; 12-17-2011 at 02:10 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mget question

Basically, I like to know how "mget" command work in terms of data/control channels and in terms of request-respond dialogue. Also, when I try the command as an example below, is it true than for each file to be transferred, there is a new connection establish? (ie. transferred one file,... (5 Replies)
Discussion started by: ho_k
5 Replies

2. UNIX for Dummies Questions & Answers

mget

hi, i want to mget a directory. how to specify the flag that i dont want the system to prompt me? thanks (2 Replies)
Discussion started by: yls177
2 Replies

3. UNIX for Dummies Questions & Answers

mget and mput...

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)
Discussion started by: yoyomamma
14 Replies

4. Shell Programming and Scripting

mget command

Hi All, I am using mget (mget server.*) through ftp... ... i dont want to overwrite the files in my localmachine if it is already exists... is it possible through ftp ?? any other optios also mos t welcome Thnks in advance (4 Replies)
Discussion started by: scorpio
4 Replies

5. UNIX for Dummies Questions & Answers

mget new files only

Hi all, I am currently in the process of setting up an FTP server with limited knowledge :p. I have run into an issue that i need some help with. Basically i want to be able to download files off another remote server twice a day every day but i want to make sure it only downloads new... (1 Reply)
Discussion started by: mokachoka
1 Replies

6. Shell Programming and Scripting

Ftp-mget

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. UNIX for Dummies Questions & Answers

MGET Problem

Hello friends.. I'm new here ate the forum. I came across with it when trying to find a solution for a problem I have and I hope you can help me. I'm an Abap programmer, and I have to make a program in ABAP to copy files from a server to the local computer defined path using FTP commands. ... (5 Replies)
Discussion started by: bleeding_me
5 Replies

8. UNIX for Dummies Questions & Answers

If then else in with mget command

Hi Friends, I need to use if then else logic with the mget command.I need to check if {JOURNAL_CODE}*_1_Audit*.txt exists then download it (using mget)and if not then leave it.Same for the {JOURNAL_CODE}*_2_Audit*.txt file.Can you please tell me how can i achive that? sftp -b -... (3 Replies)
Discussion started by: Param0073
3 Replies

9. AIX

mget is stuck

Hi, below are the commands I use to get many gif files from /usr/local/images directory, the command just getting stuck at mget, nothing is moving cd /usr/local/images binary mget *.gif:wall: close quit (3 Replies)
Discussion started by: dateez
3 Replies

10. UNIX for Dummies Questions & Answers

Strange mget problem

Hi! I'm a bit of a unix n00b so be gentle! I need to use ftp to download some files. I have the ftp running in a shell script which had been working perfectly last week. I downloaded around 400 files before it broke on friday. Now whenever I try to run the script, it starts to download... (3 Replies)
Discussion started by: johnnybongo
3 Replies
MAKEDEV.LOCAL(8)					    BSD System Manager's Manual 					  MAKEDEV.LOCAL(8)

NAME
MAKEDEV.local -- create site-specific device special files SYNOPSIS
MAKEDEV.local [-fMsu] [-m mknod] [-p pax] [-t mtree] {all | site-specific-argument} [...] DESCRIPTION
MAKEDEV.local is used to create site-specific device special files. Each argument may be the word all or a site-specific argument. By default, there are no valid site-specific arguments, and the all argument has no effect; This may be changed by editing the script. The script is in /dev/MAKEDEV.local. Devices are created in the current working directory; in normal use, MAKEDEV.local should be invoked with /dev as the current working directory. Supported options for MAKEDEV.local are the same as for MAKEDEV(8). FILES
/dev special device files directory /dev/MAKEDEV script that invokes MAKEDEV.local with the all argument. /dev/MAKEDEV.local script described in this man page SEE ALSO
config(1), intro(4), MAKEDEV(8), mknod(8) HISTORY
The MAKEDEV.local command appeared in 4.2BSD. Handling of the same command line options as MAKEDEV(8), and the use of MAKEDEV(8) as a func- tion library, was added in NetBSD 5.0. NOTES
The relationship between MAKEDEV.local and MAKEDEV(8) is complex: o If MAKEDEV(8) is invoked with the all or local argument, then it will invoke MAKEDEV.local as a child process, with options similar to those that were originally passed to MAKEDEV(8), and with the all argument. o MAKEDEV.local uses shell functions defined in MAKEDEV(8). This is done by loading MAKEDEV(8) using the shell ``.'' command, with the MAKEDEV_AS_LIBRARY variable set (to inform MAKEDEV(8) that it should behave as a function library, not as an independent program). BSD
August 6, 2011 BSD
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy