Sponsored Content
Top Forums Shell Programming and Scripting Reconnect and download data from online site Post 302313569 by ghostdog74 on Wednesday 6th of May 2009 04:29:48 AM
Old 05-06-2009
that's because you use die.
 

8 More Discussions You Might Find Interesting

1. Programming

Online site on Makefile

Hi, I would like to learn about Makefile. Can anybody suggest me any online site from where I can get detail information? Thanks. (2 Replies)
Discussion started by: bkausik
2 Replies

2. Programming

How to reconnect to online database?

HI, I am using perl LWP for connecting to online databases. some times i will get connection fail. I want to keep track of that error and again i want to connect. i.e when i get connection fail the program should not stop it should try to connect. I can check connection fail has... (1 Reply)
Discussion started by: vanitham
1 Replies

3. 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

4. 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

5. UNIX for Dummies Questions & Answers

Download image every 24hrs + put it in php site

Hi everyone, I am all new to this and I might not know what I am asking about :) I have access to a cPanel with cron tab scheduler. I know nothing re scripting creating php etc.. I own a ftp mainly for own email address, some storage, and a forum (ready-made one :P ) I have some knowledge... (5 Replies)
Discussion started by: zYx
5 Replies

6. 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

7. 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

8. 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
Mason::Plugin::RouterSimple(3pm)			User Contributed Perl Documentation			  Mason::Plugin::RouterSimple(3pm)

NAME
Mason::Plugin::RouterSimple - Specify routes for page components VERSION
version 0.05 SYNOPSIS
In a top-level component '/archives.mc': %% route ":section/{year:[0-9]{4}}/{month:[0-9]{2}}"; Archives for <b><% $.section %></b> For the month of <% $.month %>/<% $.year %> then "/archives/news/2010/02" outputs Archives for <b>news</b> For the month of 2010/02 DESCRIPTION
See Mason::Manual::RequestDispatch for background on how request paths get mapped to page components. This plugin allows you to parse "$m->path_info" (the remainder of the top-level path) using Router::Simple routes. It can be used whenever "$m->path_info" is set, i.e. with a dhandler or with a partial path. Use the "route" keyword to declare routes, either in a <%class> block or on a %%-line. Like Router::Simple::connect, "route" takes a string/regex pattern and a destination hashref; the latter defaults to "{}" if omitted. e.g. %% route "wiki/:page", { action => "wiki" }; <%class> route "download/*.*", { action => "download" }; route "blog/{year:[0-9]+}/{month:[0-9]{2}}"; </%class> This plugin overrides the default allow_path_info to return true for any component that declares at least one route. For components that do not declare a route, you will need to override "allow_path_info" as usual. Any named captured arguments, including "splat", are placed in component attributes, which are automatically declared (as standard read- write attributes) if you do not otherwise declare them. If you specify more than one route in a component, they will be tried in turn, with the first matching route taking precedence. If none of the routes match, the request will be declined; in a web context this generally means a 404. e.g. Given the route declarations above in a component named '/site.mc', o The URL "/site/wiki/HomePage" will set "$.action = "wiki"" and "$.page = "HomePage"". o The URL "/site/download/ping.mp3" will set "$.action = "download"" and "$.splat = ['ping', 'mp3']". o The URL "/site/blog/2010/02" will set "$.year = "2010"" and "$.month = "02"". o The URLs "/site/other" and "/site/blog/10/02" will result in a decline/404. SUPPORT
The mailing list for Mason and Mason plugins is mason-users@lists.sourceforge.net. You must be subscribed to send a message. To subscribe, visit https://lists.sourceforge.net/lists/listinfo/mason-users <https://lists.sourceforge.net/lists/listinfo/mason-users>. You can also visit us at "#mason" on <irc://irc.perl.org/#mason>. Bugs and feature requests will be tracked at RT: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-RouterSimple bug-mason-plugin-routersimple@rt.cpan.org The latest source code can be browsed and fetched at: http://github.com/jonswar/perl-mason-plugin-routersimple git clone git://github.com/jonswar/perl-mason-plugin-routersimple.git SEE ALSO
Mason, Router::Simple AUTHOR
Jonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-07-03 Mason::Plugin::RouterSimple(3pm)
All times are GMT -4. The time now is 05:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy