11-30-2003
Hmm, cross posting to another
Forum wont help you get your problem solved quicker! (Read the rules). People will respond if they can help. Be patient.
What about using cron to schedule this work? Have a script on B to pull down files from C and then it could also place files on A. To automate an FTP in a srcript you can use a "Here" document as follows:
ftp_func () {
ftp -v -n $TO_HOST << ENDFTP
user $USERNAME $PASSWORD
ascii # or binary depending on what your file type is
prompt off
hash on
lcd $FILE_DIR
get $FILE_NAME
bye
ENDFTP
}
See too,
Perderabo's Recursive FTP Script
Last edited by google; 11-30-2003 at 05:32 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I've tried to download from ftp sites by wget but it failed and says "Service unavailable" but when I use sftp in binary mode and use "get" command it works perfectly. What's the problem?
BTW: I tried both passive and active mode in wget.
thnx for ur help (9 Replies)
Discussion started by: mjdousti
9 Replies
2. Shell Programming and Scripting
I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go... (3 Replies)
Discussion started by: gram77
3 Replies
3. Web Development
I get
ftp> wget
?Invalid command.
ftp> 0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php
?Invalid command.
thanks (6 Replies)
Discussion started by: aneuryzma
6 Replies
4. Red Hat
Guys,
Need your help coz my server runs in local time GMT +8, but when client use ftp and login, the resulting timestamp seen in each file is in UTC format. We need to set that the time should be the same as GMT +8 when in ftp session.
I am using RHEL 5.3.
root@]# ll
total 1740... (2 Replies)
Discussion started by: shtobias
2 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I've got my own domain, ftp etc.. I'm using cPanel and I want to download a file periodically, every say 24 hours.
I've used this command:
wget -t inf http : / / www . somesite . com / webcam.jpg
ftp : / / i @ MyDomain . net : Password @ ftp . MyDomain . net^no spaces... (24 Replies)
Discussion started by: zYx
24 Replies
6. Shell Programming and Scripting
I'm using a proxy service with an ip address and a port number.
How do I use the proxy with wget or cli curl? (1 Reply)
Discussion started by: locoroco
1 Replies
7. 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
8. Red Hat
We have RHEL 5.8 in our environment, I had a query whether we can implement an FTP server using vsftpd package and Linux configurations like setsebool without using any external FTP clients like FileZilla etc. I am very confused on this. The FTP functionalities that should be present are download &... (3 Replies)
Discussion started by: RHCE
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
For an order I requested, the provider has uploaded a tar file in public FTP site which internally has tons of files (compressed) and I need to download files that follows particular pattern which would be few hundreds.
Note: The order can't be requested for files that follows the... (7 Replies)
Discussion started by: Amalan
7 Replies
10. UNIX for Advanced & Expert Users
Hi All,
Using Wget I'm able to get the status of the server.....only when the server is completely down or up....
but problem here in script is Suppose if the server got hang I mean to say that if the server is taking long time to login, for example normally the server takes 3 seconds to login... (3 Replies)
Discussion started by: manohar2013
3 Replies
LEARN ABOUT DEBIAN
podget
podget.man(7) Linux Reference Manual podget.man(7)
NAME
Podget
SYNOPSIS
podget <options> [command]
podget -h | --help
DESCRIPTION
OPTIONS
-c, --config <FILE>
Name of configuration file.
-C, --cleanup
Skip downloading and only run cleanup loop.
--cleanup_days <NUMBER>
Cleanup files older than <NUMBER> days.
--cleanup_simulate
Simulate cleanup loop to see what files would be deleted.
-d, --dir_config <DIRECTORY>
Directory that configuration files are stored in.
-f, --force
Force download of items from each feed even if they've already been downloaded.
--import_opml <FILE or URL>
Import servers from OPML file or HTTP/FTP URL.
--import_pcast <FILE or URL>
Import server from iTunes PCAST file or HTTP/FTP URL.
-l, --library <DIRECTORY>
Directory to store downloaded files in.
-p, --playlist-asx
In addition to M3U playlists, create ASX playlists.
-r, --recent <COUNT>
Download only the <COUNT> newest items from each feed.
--serverlist <FILE>
Use <FILE> as serverlist instead of default.
-s, --silent
Run silently (for cron jobs).
-v Set verbosity to level 1.
--verbosity <LEVEL>
Set verbosity level (0-3).
-h, --help
Display help.
EXAMPLE CRON JOB
Once podget is running acceptably, its most useful if you run it from a cron job so that the new songs are available to play or load onto a
portable player and you dont have to wait for them to download.
To edit your crontab, do:
$ crontab -e
Then insert one line (i for insert mode), like the following:
15 04 * * * /usr/bin/podget -s
This will run podget at 4:15 AM every day.
AUTOMATIC CLEANUP
You can enabled automatic cleanup with every run by configuring it in your $HOME/.podget/podgetrc file. Simply set the following options:
# Autocleanup.
# 0 == disabled
# 1 == delete any old content
cleanup=1
# Number of days to keep files. Cleanup will remove anything
# older than this.
cleanup_days=7
However, some people prefer to run cleanup as a seperate cron session. To do that, set the options in .podgetrc to:
# Autocleanup.
# 0 == disabled
# 1 == delete any old content
cleanup=0
# Number of days to keep files. Cleanup will remove anything
# older than this.
cleanup_days=7
And add a cron job to run cleanup, like one of these examples:
# Once a week on Sunday at 04:15AM
15 04 * * Sun /usr/bin/podget -C
SESSION CONTROL
Podget checks for already running sessions when it starts and exits if any are found.
Each session requires its own core configuration file, so for multiple sessions simply provide a unique -c <configfile> option for
each.
EXAMPLE SERVER LIST
By default, Podget uses $HOME/.podget/serverlist for the default list of servers
to contact.
However you can configure the name with the config_serverlist variable in your $HOME/.podget/podgetrc file.
The default format is: <url> <category> <name>
Note: Category must be one word.
Example:
# Default Server List for podget
# FORMAT: <url> <category> <name>
# NOTE: Category must be one word
http://www.distortedview.com/show/index.xml Humor Distorted View
http://www.podcastingnews.com/forum/links.php?func=show&id=214 IT In the Trenches
http://www.lugradio.org/episodes.rss Linux LUG Radio
http://thelinuxlink.net/tllts/tllts.rss Linux The Linux Link
http://www.bbc.co.uk/radio4/history/inourtime/mp3/podcast.xml Philosophy BBC: In Our Time
http://www.privacyfreaks.org/podcast.php privacy Privacy Freaks
http://www.rsasecurity.com/blog/rssfeed.asp security Speaking of Security
http://dl.chickencat.com/podcast.php privacy Digital Liberties
http://feeds.feedburner.com/LiveAmmo security LiveAmmo
HANDLING UTF-16 FEEDS
Some servers provide their feeds in UTF-16 format rather than the more common UTF-8.
To automatically convert these files, create a secondary serverlist at:
$HOME/.podget/serverlist.utf16
Remember to change the name of the serverlist to match what you set it to with config_serverlist if you changed it.
AUTHORS
Dave Vehrs
DOC
January 06, 2007 podget.man(7)