Sponsored Content
Full Discussion: downlading using wget fails
Operating Systems Linux downlading using wget fails Post 302510600 by DukeNuke2 on Monday 4th of April 2011 12:16:08 PM
Old 04-04-2011
i was just to tired to ask this, again...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wget help

i am trying to ftp files/dirs with wget. i am having an issue where the path always takes me to my home dir even when i specify something else. For example: wget -m ftp://USER:PASS@IP_ADDRESS/Path/on/remote/box ...but if that path on the remote box isn't in my home dir it doesn't change to... (0 Replies)
Discussion started by: djembeplayer
0 Replies

2. Shell Programming and Scripting

wget

Hi I want to download some files using wget , and want to save in a specified directory. Is there any way to save it.Please suggest me. (1 Reply)
Discussion started by: mnmonu
1 Replies

3. Shell Programming and Scripting

wget help?

can someone please help in understanding this shell script? wget --progress=dot:mega --cut-dirs=4 -r -c -nH -np --reject index.html*,icons/*.gif \ http://*****.oz.xxxxx.com:<portnum>/omcsm/releases/dew/${UPGRADE_VERSION}/ (1 Reply)
Discussion started by: dnam9917
1 Replies

4. UNIX for Dummies Questions & Answers

Wget

...... (1 Reply)
Discussion started by: hoo
1 Replies

5. Shell Programming and Scripting

WGET help!

Hi Friends, I have an url like this https://www.unix.com/help/ In this help directory, I have more than 300 directories which contains file or files. So, the 300 directories are like this http://unix.com/help/ dir1 file1 dir2 file2 dir3 file3_1 file3_2... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

6. Red Hat

Wget

If I run the following command wget -r --no-parent --reject "index.html*" 10.11.12.13/backups/ A local directory named 10.11.12.13/backups with the content of web site data is created. What I want to do is have the data placed in a local directory called $HOME/backups. Thanks for... (1 Reply)
Discussion started by: popeye
1 Replies

7. Shell Programming and Scripting

Wget fails for a valid URL

Wget Error Codes: 0 No problems occurred. 1 Generic error code. 2 Parse error—for instance, when parsing command-line options, the .wgetrc or .netrc… 3 File I/O error. 4 Network failure. 5 SSL verification failure. 6 Username/password authentication failure. ... (3 Replies)
Discussion started by: mohtashims
3 Replies

8. UNIX for Dummies Questions & Answers

Wget help

How can I download only *.zip and *.rar files from a website <index> who has multiple directories in root parent directory? I need wget to crawl every directory and download only zip and rar files. Is there anyway I could do it? (7 Replies)
Discussion started by: galford
7 Replies

9. Shell Programming and Scripting

Wget and gz

Can wget be used to goto a site and piped into a .gz extrated command? wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz (1 Reply)
Discussion started by: cmccabe
1 Replies

10. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies
Catalyst(3pm)						User Contributed Perl Documentation					     Catalyst(3pm)

NAME
Log::Log4perl::Catalyst - Log::Log4perl Catalyst Module SYNOPSIS
In your main Catalyst application module: use Log::Log4perl::Catalyst; # Either make Log4perl act like the Catalyst default logger: __PACKAGE__->log(Log::Log4perl::Catalyst->new()); # or use a Log4perl configuration file, utilizing the full # functionality of Log4perl __PACKAGE__->log(Log::Log4perl::Catalyst->new('l4p.conf')); ... and then sprinkly logging statements all over any code executed by Catalyst: $c->log->debug("This is using log4perl!"); DESCRIPTION
This module provides Log4perl functions to Catalyst applications. It was inspired by Catalyst::Log::Log4perl on CPAN, but has been completely rewritten and uses a different approach to unite Catalyst and Log4perl. Log4perl provides loggers, usually associated with the current package, which can then be remote-controlled by a central configuration. This means that if you have a controller function like package MyApp::Controller::User; sub add : Chained('base'): PathPart('add'): Args(0) { my ( $self, $c ) = @_; $c->log->info("Adding a user"); # ... } Level-based control is available via the following methods: $c->log->debug("Reading configuration"); $c->log->info("Adding a user"); $c->log->warn("Can't read configuration ($!)"); $c->log->error("Can't add user ", $user); $c->log->fatal("Database down, aborting request"); But that's no all, Log4perl is much more powerful. The logging statement can be suppressed or activated based on a Log4perl file that looks like # All MyApp loggers opened up for DEBUG and above log4perl.logger.MyApp = DEBUG, Screen # ... or # All loggers block messages below INFO log4perl.logger=INFO, Screen # ... respectively. See the Log4perl manpage on how to perform fine-grained log-level and location filtering, and how to forward messages not only to the screen or to log files, but also to databases, email appenders, and much more. Also, you can vary the layout of each message. For example if you want to know where a particular statement was logged, turn on file names and line numbers: # Log4perl configuration file # ... log4perl.appender.Screen.layout.ConversionPattern = %F{1}-%L: %p %m%n Messages will then look like MyApp.pm-1869: INFO Saving user profile for user "wonko" Or want to log a request's IP address with every log statement? No problem with Log4perl, just call Log::Log4perl::MDC->put( "ip", $c->req->address() ); at the beginning of the request cycle and use # Log4perl configuration file # ... log4perl.appender.Screen.layout.ConversionPattern = [%d]-%X{ip} %F{1}-%L: %p %m%n as a Log4perl layout. Messages will look like [2010/02/22 23:25:55]-123.122.108.10 MyApp.pm-1953: INFO Reading profile for user "wonko" Again, check the Log4perl manual page, there's a plethora of configuration options. METHODS
new($config, [%options]) If called without parameters, new() initializes Log4perl in a way so that messages are logged similiarly to Catalyst's default logging mechanism. If you provide configuration, either the name of a configuration file or a reference to scalar string containing the configuration, it will call Log4perl with these parameters. The second (optional) parameter is a list of key/value pairs: 'autoflush' => 1 # Log without buffering ('abort' not supported) 'watch_delay' => 30 # If set, use L<Log::Log4perl>'s init_and_watch _flush() Flushes the cache. abort($abort) Clears the logging system's internal buffers without logging anything. Using :easy Macros with Catalyst If you're tired of typing $c->log->debug("..."); and would prefer to use Log4perl's convenient :easy mode macros like DEBUG "..."; then just pull those macros in via Log::Log4perl's :easy mode and start cranking: use Log::Log4perl qw(:easy); # ... use macros later on sub base :Chained('/') :PathPart('apples') :CaptureArgs(0) { my ( $self, $c ) = @_; DEBUG "Handling apples"; } Note the difference between Log4perl's initialization in Catalyst, which uses the Catalyst-specific Log::Log4perl::Catalyst module (top of this page), and making use of Log4perl's loggers with the standard Log::Log4perl loggers and macros. While initialization requires Log4perl to perform dark magic to conform to Catalyst's different logging strategy, obtaining Log4perl's logger objects or calling its macros are unchanged. Instead of using Catalyst's way of referencing the "context" object $c to obtain logger references via its log() method, you can just as well use Log4perl's get_logger() or macros to access Log4perl's logger singletons. The result is the same. COPYRIGHT AND LICENSE
Copyright 2002-2010 by Mike Schilli <m@perlmeister.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-07-21 Catalyst(3pm)
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy