Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Download image every 24hrs + put it in php site Post 302411503 by figaro on Thursday 8th of April 2010 04:55:52 PM
Old 04-08-2010
It is best if you start experimenting with cron jobs and the cron tab. Once you master that it is much easier to disentangle bugs of cron invoked scripts.
After learning cron, you can program your script and it shouldn't be very difficult to do given the many examples on the web. For instance you can start by first downloading a textfile from the web and then move to images that are stored with a certain naming convention. Sorry I cant be of much more help.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script for download files from ftp site

I'm new to scripting. I'm trying to write a script to download files from ftp site, the following is the script and the message i get after running the script. no files were downloaded :( Thanks advance! script: #!/usr/bin/ksh DAY=`date --date="-1 days" +%y%m%d` ftp -v -n "ftp.address" <<... (5 Replies)
Discussion started by: tiff-matt
5 Replies

2. Linux

shell script to download files from a site?

Hey everyone, my wife has purchased a bundle package of a bunch of images from a site, and now has to download each one of them manually. There are about 500 downloads, and it's quite a hassle to browse to each page and download them all individually. I would like to write a shell script to... (2 Replies)
Discussion started by: paqman
2 Replies

3. Shell Programming and Scripting

Reconnect and download data from online site

Hi, I have to connect to online site and download some data from the online site but sometimes the site which i have to connect will be busy or it will not be working in such a case i have to connect atleast 3 times and try to download the data. I tried like this: use CGI::Carp... (2 Replies)
Discussion started by: vanitham
2 Replies

4. Shell Programming and Scripting

Wget, download file from site's folder.

Ok, this is quite weird. wget -r mysite.com/mylink/ should get all the files recursively from the 'mylink' folder. The problem is that wget saves an index.html file! When I open this index.html with my browser I realize that it shows all the files in the current folder (plus an option to move... (3 Replies)
Discussion started by: hakermania
3 Replies

5. Shell Programming and Scripting

lftp script to connect to external sftp site and download to internal ftp and then send email

Hi there, I'm new to shell scripting and need some help if possible? I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies

6. Shell Programming and Scripting

Download a site

A buddy of mine was telling me last night that you can write a bash script that will download an entire site in gedit?? Is this true??? I think I am going to fall in love with bash :D Any good tutorials?? (15 Replies)
Discussion started by: graphicsman
15 Replies

7. Shell Programming and Scripting

Download dynamic generated image from HTML page

I've an HTML page where the pie chart is generated with google java code with the required input values in UNIX. The HMTL page is generated in UNIX and then when it loads in browser, the code is interpreted thought internet and the pie chart is generated. This is done by the java code in the... (4 Replies)
Discussion started by: Amutha
4 Replies

8. UNIX for Dummies Questions & Answers

How to download file protected by image captcha from command line?

Hello, any way to download file from image captcha download protected website? The download link is not static but session based, generated. I can do also via web browser, but i trust rather command line, maybe im wrong (1 Reply)
Discussion started by: postcd
1 Replies

9. Shell Programming and Scripting

Visit site get data and put in file for use.

I need to go to "vpnbook"vpnbook.com on the web (can't put in name yet)and open "Openvpn" tab On that page I need to get the username:vpnbook and the next line password:???????? I need to put those two in line one and two of a file "pwfile" When I have those I need to open openVPN with the... (1 Reply)
Discussion started by: tytower
1 Replies
DRUSH(1)						      General Commands Manual							  DRUSH(1)

NAME
drush - shell scripting interface for Drupal SYNOPSIS
drush [options] command... DESCRIPTION
drush is a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, exe- cutes sql queries and DB migrations, and misc utilities like run cron or clear cache. OPTIONS
-r path, --root=path Drupal root directory to use (default: current directory) -l uri, --uri=uri URI of the drupal site to use (only needed in multisite environments) -v, --verbose Display extra information about the command. -q, --quiet Hide all output -d, --debug Display even more information, including internal messages. -y, --yes Assume 'yes' as answer to all prompts -s, --simulate Simulate all relevant actions (don't actually change the system) -p, --pipe Emit a compact representation of the command for scripting. -h, --help A detailed help system, use drush help help for complete help. --version Show drush version. If you get tired of typing options all the time, you can add them to your drush.php alias or create a drushrc.php file. These provide addi- tional options for your drush call. They provide great flexibility for a multi-site installation, for example. See example.drushrc.php. COMMANDS
Drush is all based around "commands" that are usually defined in various modules. help Print the help message. Use --filter to limit command list to one command file (e.g. --filter=pm). cache-clear (cc) Clear a specific cache, or all drupal caches. core-cli (cli) Enter a new shell optimized for Drush use. core-cron (cron) Run all cron hooks. core-status (st) Provides a birds-eye view of the current Drupal installation, if any. php-eval (eval) Evaluate arbitrary php code after bootstrapping Drupal. updatedb (updb) Apply any database updates required (as with running update.php). variable-get (vget) Get a list of some or all site variables and values variable-set (vset) Set a variable. watchdog show Shows recent watchdog log messages. Optionally filter for a specific type. pm-enable (en) Enable one or more extensions (modules or themes). pm-disable (dis) Disable one or more extensions (modules or themes). pm-download (dl) Download projects from drupal.org or other sources. pm-uninstall Uninstall one or more modules. pm-updatecode (upc) Update Drupal core and contrib projects to latest recommended releases. pm-update (up) Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb). sql-cli (sqlc) Open a SQL command-line interface using Drupal's credentials. sql-connect A string for connecting to the DB. sql-dump Exports the Drupal DB as SQL using mysqldump. This manual only lists a few of the most frequently used builtin commands shipped with the Drush core, since other Drupal modules and third-party "command files" may extend this list significantly. The canonical source of information for the available commands and their usage is the online help system. More information on each command is also available through drush help <command>. Most commands have shortcuts indicated in parenthesis. FILES
/etc/drush/drushrc.php /usr/share/doc/drush/examples/example.drushrc.php SEE ALSO
cvs(1), svn(1), wget(1). AUTHOR
Drush was originally developed by Arto for Drupal 4.7 (this alpha code can still be found in the DRUPAL-4-7 branch). In May 2007, it was partly rewritten and redesigned for Drupal 5 by frando. Since 2008, the module has been maintained by Moshe Weitzman, Owen Barton and Adrian Rossouw. This manual page was written by Antoine Beaupre <anarcat@debian.org> in June 2009 for the Debian project (but may be used by others). January 11, 2011 DRUSH(1)
All times are GMT -4. The time now is 04:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy