06-21-2014
Bump?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I would like to extract the files from an archive which I have copied from a different server which has different file structures to my server.
When I do a tar xvf archive_name, I get the error saying the file or directory cannot be found. How do I specify a desginated directory to... (4 Replies)
Discussion started by: john_trinh
4 Replies
2. Shell Programming and Scripting
Hi all
I'm having trouble using MIME's multipart/mixed content type. I just try to send an email with a common body text together with an attachment (.gif). The only output I get is an empty email with no text and an invalid attachment (MS Outlook says it doesn't recognize the attachment type).... (2 Replies)
Discussion started by: Indalecio
2 Replies
3. UNIX for Dummies Questions & Answers
Hello!
I want to extract a choosen directory (and its contents) from a tar archive and i have tried what i believe is every option i could find in the manual.
I think i have done it once before, but i don't remeber how.
Could anyone please tell me how to do? (2 Replies)
Discussion started by: noratx
2 Replies
4. Shell Programming and Scripting
Hi, since half an hour I currently try to write a script that will:
1) Extract every debian file in a directory
2) Extracts it to a folder that matches the debians filename
3) Extracts it so the structure looks like that:
DEBIANFILENAME
|
-------------- DEBIAN
... (9 Replies)
Discussion started by: pasc
9 Replies
5. Shell Programming and Scripting
So I have a file in the following format
>*42
abssdfalsdfkjfuf
asdhfskdkdklllllllffl
eiffejcif
>2
dfhucujf
dhfjdkfhskskkkkk
eifjvujf
ddftttyy
yyy
>~
ojcufk
kcdheycjc
djcyfjf
and I would like it to output
abssdfalsdfkjfufasdhfskdkdklllllllffleiffejcif (3 Replies)
Discussion started by: viored
3 Replies
6. UNIX for Dummies Questions & Answers
Hi Everyone,
I need some help to construct a long 'Sbjct' string from the following input using incremental order of 'Sbjct' starting number (e.g. 26325115,33716368,33769033,34869860 etc.)
Different 'Sbject' string will be separated by 'NNNN's as:
... (6 Replies)
Discussion started by: Fahmida
6 Replies
7. Shell Programming and Scripting
HI
Please suggest how to untar archive on remote sever. When im trying use regular command without any flags everything working fine:
$( ssh <user>@<server> -n '. ~/.profile >/dev/null 2>&1 ; cd /path_1 ; copiedIVR_name=`ls -tr | tail -1` ; tar xvf $copiedIVR_name ' )
but i have to ... (1 Reply)
Discussion started by: BACya
1 Replies
8. UNIX for Dummies Questions & Answers
HI All
Please suggest how to untar archive on remote sever. When im trying use regular command without any flags everything is working fine:
$( ssh <user>@<server> -n '. ~/.profile >/dev/null 2>&1 ; cd /path_1 ; copiedIVR_name=`ls -tr | tail -1` ; tar xvf $copiedIVR_name ' )
but when im... (9 Replies)
Discussion started by: BACya
9 Replies
9. Programming
I need to save part of a file to a different one, start and end offset bytes are provided by two counters in long format. If the difference is big, how should I do it to prevent buffer overflow in java? (7 Replies)
Discussion started by: Tribe
7 Replies
10. AIX
Hello,
P7 machine
PCI Express x8 Planar 3Gb SAS Adapter
RAID10 array(2 disks)(not AIX lvm) was configured and working, then one disk failed and IBM support replaced that. Now raid array is degraded, data is not lost. I see new disk model(same as original) serial and etc.
What I did trying... (0 Replies)
Discussion started by: vilius
0 Replies
LEARN ABOUT DEBIAN
xmltv::grab_xml
grab::Grab_XML(3pm) User Contributed Perl Documentation grab::Grab_XML(3pm)
NAME
XMLTV::Grab_XML - Perl extension to fetch raw XMLTV data from a site
SYNOPSIS
package Grab_XML_rur;
use base 'XMLTV::Grab_XML';
sub urls_by_date( $ ) { my $pkg = shift; ... }
sub country( $ ) { my $pkg = shift; return 'Ruritania' }
# Maybe override a couple of other methods as described below...
Grab_XML_rur->go();
DESCRIPTION
This module helps to write grabbers which fetch pages in XMLTV format from some website and output the data. It is not used for grabbers
which scrape human-readable sites.
It consists of several class methods (package methods). The way to use it is to subclass it and override some of these.
METHODS
XMLTV::Grab_XML->date_init()
Called at the start of the program to set up Date::Manip. You might want to override this with a method that sets the timezone.
XMLTV::Grab_XML->urls_by_date()
Returns a hash mapping YYYYMMDD dates to a URL where listings for that date can be downloaded. This method is abstract, you must
override it.
Arguments: the command line options for --config-file and --quiet.
XMLTV::Grab_XML->xml_from_data(data)
Given page data for a particular day, turn it into XML. The default implementation just returns the data unchanged, but you might
override it if you need to decompress the data or patch it up.
XMLTV::Grab_XML->configure()
Configure the grabber if needed. Arguments are --config-file option (or undef) and --quiet flag (or undef).
This method is not provided in the base class; if you don't provide it then attempts to --configure will give a message that
configuration is not necessary.
XMLTV::Grab_XML->nextday(day)
Bump a YYYYMMDD date by one. You probably shouldn't override this.
XMLTV::Grab_XML->country()
Return the name of the country you're grabbing for, used in usage messages. Abstract.
XMLTV::Grab_XML->usage_msg()
Return a command-line usage message. This calls "country()", so you probably need to override only that method.
XMLTV::Grab_XML->get()
Given a URL, fetch the content at that URL. The default implementation calls XMLTV::Get_nice::get_nice() but you might want to
override it if you need to do wacky things with http requests, like cookies.
Note that while this method fetches a page, "xml_from_data()" does any further processing of the result to turn it into XML.
XMLTV::Grab_XML->go()
The main program. Parse command line options, fetch and write data.
Most of the options are fairly self-explanatory but this routine also calls the XMLTV::Memoize module to look for a --cache argument.
The functions memoized are those given by the "cachables()" method.
XMLTV::Grab_XML->cachables()
Returns a list of names of functions which could reasonably be memoized between runs. This will normally be whatever function fetches
the web pages - you memoize that to save on repeated downloads. A subclass might want to add things to this list if it has its own way
of fetching web pages.
XMLTV::Grab_XML->remove_early_stop_times()
Checks each stop time and removes it if it's before the start time.
Argument: the XML to correct Returns: the corrected XML
AUTHOR
Ed Avis, ed@membled.com
SEE ALSO
perl(1), XMLTV(3).
perl v5.14.2 2006-01-08 grab::Grab_XML(3pm)