Bad Apprehensions

 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Cartoons for Geeks Bad Apprehensions
# 1  
Old 11-13-2008
Bad Apprehensions

2008-11-13T23:22:00+01:00
Image *


Image Image Image Image
Image

Source...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

bad options(s)

Hi Folks, I am seeing an issue in solaris, while running a script.. Script contents #!/usr/bin/bash echo $HOME echo "********** RUNNING props on test ********" . /opt/home/weblogic/.profile > /dev/null echo "****** CURRENT BRANCH: $BRANCH *********"; .... (3 Replies)
Discussion started by: ganga.dharan
3 Replies

2. Shell Programming and Scripting

Why I get bad bad substitution when using eval?

Why I get bad replace when using eval? $ map0=( "0" "0000" "0") $ i=0 $ eval echo \${map$i} 0000 $ a=`eval echo \${map$i}` !!!error happens!!! bash: ${map$i}: bad substitution How to resolve it ? Thanks! (5 Replies)
Discussion started by: 915086731
5 Replies

3. Shell Programming and Scripting

Bad Interpreter

Hi. My name is Caleb (a.k.a RagingNinja) form the whited00r forums. (Whited00r makes custom firmware for iOS devices). I have been learning and creating simple shells scripts. I have been recently using VIM for Windows or using VirtualBox to run the UBUNTU OS within VirtualBox to create my shell... (2 Replies)
Discussion started by: RagingNinja
2 Replies

4. UNIX for Advanced & Expert Users

Bad emulation

I am using mpc8xx processor with linux-2.4.20 kernel. These prints are getting flooded to my console almost consistenly. 14 06:29:17 MC4L-TP01 syslog.warn klogd: pte @ 0x10113d88: (0xc51cc100)->(0xc4bd144c)->0x01eec889 Oct 14 06:29:17 MC4L-TP01 syslog.warn klogd: RPN: 01eec PP: 2 SPS: 1 SH:... (1 Reply)
Discussion started by: subratasaharia
1 Replies

5. UNIX for Dummies Questions & Answers

Does this look like a bad drive to anyone?

Jun 19 02:45:28 scsi: WARNING: /pci@8,600000/scsi@1/sd@c,0 (sd42): Jun 19 02:45:28 Error for Command: read Error Level: Retryable Jun 19 02:45:28 scsi: Requested Block: 713232 Error Block: 713244 Jun 19 02:45:28 scsi: Sense Key: Media Error (1 Reply)
Discussion started by: jgentile
1 Replies

6. Shell Programming and Scripting

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (2 Replies)
Discussion started by: shilendrajadon
2 Replies

7. UNIX for Advanced & Expert Users

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (1 Reply)
Discussion started by: shilendrajadon
1 Replies

8. Shell Programming and Scripting

bad if test

:confused: Bad if test: if returns an error I have changed filename to "filename"s su "$filename" 'filename'' '$filename'' "./filename" "./$filename" error is usually why cant I test the filename? Thanks (4 Replies)
Discussion started by: sharkze
4 Replies

9. UNIX for Dummies Questions & Answers

I just did something bad....

I ran rm -rf lib*, I intended libm*, it deleted the whole lib dir from root. This is a dedicated webserver. What should I do? (4 Replies)
Discussion started by: Lss1
4 Replies
Login or Register to Ask a Question
WebService::CIA::Source::Web(3pm)			User Contributed Perl Documentation			 WebService::CIA::Source::Web(3pm)

NAME
WebService::CIA::Source::Web - An interface to the online CIA World Factbook SYNOPSIS
use WebService::CIA::Source::Web; my $source = WebService::CIA::Source::DBM->new(); DESCRIPTION
WebService::CIA::Source::Web is an interface to the live, online version of the CIA World Factbook. It's a very slow way of doing things, but requires no pre-compiled DBM. It's more likely to be useful for proving concepts or testing. METHODS
Apart from "new", these methods are normally accessed via a WebService::CIA object. "new( \%opts )" my $source = WebService::CIA::Source::Web->new(); $source = WebService::CIA::Source::Web->new( { user_agent => $ua } ); This method creates a new WebService::CIA::Source::Web object. It takes an optional hashref of arguments. "user_agent" A user agent object to use. This must implement the same user interface as "LWP::UserAgent" (or, at least, a "get()" method). "value($country_code, $field)" Retrieve a value from the web. $country_code should be the FIPS 10-4 country code as defined in <https://www.cia.gov/library/publications/the-world-factbook/appen- dix/appendix-d.html>. $field should be the name of the field whose value you want to retrieve, as defined in <https://www.cia.gov/library/publica- tions/the-world-factbook/docs/notesanddefs.html>. (WebService::CIA::Parser also creates four extra fields: "URL", "URL - Print", "URL - Flag", and "URL - Map" which are the URLs of the country's Factbook page, the printable version of that page, a GIF map of the coun- try, and a GIF flag of the country respectively.) "value" will return "undef" if the country or field cannot be found, or if there is an error GETing the page. This isn't ideal, but I can't think of the best way around it right now. "all($country_code)" Returns a hashref of field-value pairs for $country_code or an empty hashref if $country_code isn't available from the Factbook. "get($country_code)" Retrieve and cache the data for a country. Returns 1 if successful, 0 if not. "cached($country_code)" Get/set the country code whose data is cached. "cache($hashref)" Get/set a hashref of data for the current country. "parser()" Returns a reference to the WebService::CIA::Parser object being used. "ua( $userAgent )" Returns a reference to the user agent object being used. By default this is an "LWP::UserAgent" object, but you can pass a different object in if you wish. "last_response()" Returns the "HTTP::Response" object from the last request. CACHING
In order to make some small improvement in efficiency, WebService::CIA::Source::Web keeps a copy of the data for the last country down- loaded in memory. TO DO
File system based caching of pages. User-definable stack of cached countries, rather than just one. Caching of last-modified headers; conditional GET. AUTHOR
Ian Malpass (ian-cpan@indecorous.com) COPYRIGHT
Copyright 2003-2007, Ian Malpass This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The CIA World Factbook's copyright information page (<https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copy- right.html>) states: The Factbook is in the public domain. Accordingly, it may be copied freely without permission of the Central Intelligence Agency (CIA). SEE ALSO
WebService::CIA, WebService::CIA::Parser, WebService::CIA::Source::DBM perl v5.8.8 2008-02-04 WebService::CIA::Source::Web(3pm)