Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help Needed with Creating Script Post 302461760 by wthomas on Tuesday 12th of October 2010 07:14:15 AM
Old 10-12-2010
Thanks Guys.
 

10 More Discussions You Might Find Interesting

1. Solaris

help needed in creating an image from a 7za compressed file

Hi all, I have been working on a few files that have been 7za compressed.(which are a part of an OS) Now after extracting the file and doing manipulations i did a putback. But when i create an image and burn it onto the disk to check if my changes are working... I get error at boot time. Now... (0 Replies)
Discussion started by: wrapster
0 Replies

2. Shell Programming and Scripting

(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script

Hi, I need help urgently for following issue. Pls help me to resolve this issue. I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql) I given... (6 Replies)
Discussion started by: praka
6 Replies

3. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

4. HP-UX

Tru 64 bit on HP AlphaServer ES45 creating problem Help Needed !!!

Dear All, I am new on Tru 64 bit Unix platform. I have a database server "HP AlphaServer ES45" version p5.1 of Tru Ux 64 bit installed. I have 4 hard drives in this system (1,2,3,4). My 4th hard drive is damaged which contain Oracle database files including partitions on 4th drives... (2 Replies)
Discussion started by: hellozishan
2 Replies

5. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

6. Shell Programming and Scripting

KSH - help needed for creating a script to generate xml file from text file

Dear Members, I have a table in Oracle DB and one of its column name is INFO which has data in text format which we need to fetch in a script and create an xml file of a new table from the input. The contents of a single cell of INFO column is like: Area:app - aam Clean Up Criteria:... (0 Replies)
Discussion started by: Yoodit
0 Replies

7. Shell Programming and Scripting

Need help in creating file restoration script from a backup script.

Hi all i am struggling in creating a restore of env files while doing applications clone. the first file i created for copying the important configurations file which is running perfect now for reverting the changes i mean when i am restoring these files to its original places i have to do... (7 Replies)
Discussion started by: javeedkaleem
7 Replies

8. Shell Programming and Scripting

Creating IN list in PLSQL script dynamically by using shell script

Hi all, I have a PLSQL script which has a IN list where it takes some ids as input. For example SELECT * FROM EMPLOYEE WHERE EMPLOYEE_ID IN (comma separated list ) I want to run this quest inside a shell script but I would like to prepare the IN list dynamically where the employee ids... (1 Reply)
Discussion started by: LoneRanger
1 Replies

9. Shell Programming and Scripting

Help Needed for creating the folder by checking today's date and, take backup using rsync command

How to create a shell script to create a folder by using the today's date to take backup using rsync command on every evening around 7 pm. Kindly help. Thanks. To be more precise, I want to create a script which matches the today's date with server's date format, if matches then creates the... (2 Replies)
Discussion started by: bakula10
2 Replies

10. UNIX for Advanced & Expert Users

Creating script in rc.d

Hi, I have created customized scripts to start httpd and postgres (For CentOS 6) in /etc/init.d. However for it to work even after reboot, I have to put the script in /etc/rc.d/rc0.d, rc1.d, etc. # ls -lrt total 60 -rwxr-xr-x 1 root root 20199 Oct 4 2017 rc.sysinit -rwxr-xr-x 1... (6 Replies)
Discussion started by: anaigini45
6 Replies
XML::RSS::Feed(3pm)					User Contributed Perl Documentation				       XML::RSS::Feed(3pm)

NAME
XML::RSS::Feed - Persistant XML RSS Encapsulation VERSION
2.212 SYNOPSIS
A quick and dirty non-POE example that uses a blocking sleep. The magic is in the late_breaking_news method that returns only headlines it hasn't seen. use XML::RSS::Feed; use LWP::Simple qw(get); my $feed = XML::RSS::Feed->new( url => "http://www.jbisbee.com/rdf/", name => "jbisbee", delay => 10, debug => 1, tmpdir => "/tmp", # optional caching ); while(1) { $feed->parse(get($feed->url)); print $_->headline . " " for $feed->late_breaking_news; sleep($feed->delay); } ATTENTION! - If you want a non-blocking way to watch multiple RSS sources with one process use POE::Component::RSSAggregator. CONSTRUCTOR
XML::RSS::Feed->new( url => $url, name => $name ) Required Params * name Identifier and hash lookup key for the RSS feed. * url The URL of the RSS feed Optional Params * delay Number of seconds between updates (defaults to 600) * tmpdir Directory to keep a cached feed (using Storable) to keep persistance between instances. * debug Turn debuging on. * headline_as_id Boolean value to use the headline as the id when URL isn't unique within a feed. * hlobj A class name sublcassed from XML::RSS::Headline * max_headlines The max number of headlines to keep. (default is unlimited) METHODS
$feed->parse( $xml_string ) Pass in a xml string to parse with XML::RSS and then call process to process the results. $feed->process( $items, $title, $link ) $feed->process( $items, $title ) $feed->process( $items ) Calls pre_process, process_items, post_process, title, and link methods to process the parsed results of an RSS XML feed. * $items An array of hash refs which will eventually become XML::RSS::Headline objects. Look at XML::RSS::Headline->new() for acceptable argu- ments. * $title The title of the RSS feed. * $link The RSS channel link (normally a URL back to the homepage) of the RSS feed. $feed->pre_process Mark all headlines from previous run as seen. $feed->process_items( $items ) Turn an array refs of hash refs into XML::RSS::Headline objects and added to the internal list of headlines. $feed->post_process Post process cleanup, cache headlines (if tmpdir), and debug messages. $feed->create_headline( %args) Create a new XML::RSS::Headline object and add it to the interal list. Check XML::RSS::Headline->new() for acceptable values for %args. $feed->num_headlines Returns the number of headlines for the feed. $feed->seen_headline( $id ) Just a boolean test to see if we've seen a headline or not. $feed->headlines Returns an array or array reference (based on context) of XML::RSS::Headline objects $feed->late_breaking_news Returns an array or the number of elements (based on context) of the latest XML::RSS::Headline objects. $feed->cache If tmpdir is defined the rss info is cached. $feed->set_last_updated $feed->set_last_updated( Time::HiRes::time ) Set the time of when the feed was last processed. If you pass in a value it will be used otherwise calls Time::HiRes::time. $feed->last_updated The time (in epoch seconds) of when the feed was last processed. $feed->last_updated_hires The time (in epoch seconds and milliseconds) of when the feed was last processed. SET
/GET ACCESSOR METHODS $feed->title $feed->title( $title ) The title of the RSS feed. $feed->debug $feed->debug( $bool ) Turn on debugging messages $feed->init $feed->init( $bool ) init is used so that we just load the current headlines and don't return all headlines. in other words we initialize them. Takes a bool- ean argument. $feed->name $feed->name( $name ) The identifier of an RSS feed. $feed->delay $feed->delay( $seconds ) Number of seconds between updates. $feed->link $feed->link( $rss_channel_url ) The url in the RSS feed with a link back to the site where the RSS feed came from. $feed->url $feed->url( $url ) The url in the RSS feed with a link back to the site where the RSS feed came from. $feed->headline_as_id $feed->headline_as_id( $bool ) Within some RSS feeds the URL may not always be unique, in these cases you can use the headline as the unique id. The id is used to check whether or not a feed is new or has already been seen. $feed->hlobj $feed->hlobj( $class ) Ablity to use a subclass of XML::RSS::Headline. (See Perl Jobs example in XML::RSS::Headline::PerlJobs). This should just be the name of the subclass. $feed->tmpdir $feed->tmpdir( $tmpdir ) Temporay directory to store cached RSS XML between instances for persistance. $feed->max_headlines $feed->max_headlines( $integer ) The maximum number of headlines you'd like to keep track of. (0 means infinate) DEPRECATED METHODS
$feed->failed_to_fetch This should was deprecated because, the object shouldn't really know anything about fetching, it just processes the results. This method currently will always return false $feed->failed_to_parse This method was deprecated because, $feed->parse now returns a bool value. This method will always return false AUTHOR
Jeff Bisbee, "<jbisbee at cpan.org>" BUGS
Please report any bugs or feature requests to "bug-xml-rss-feed at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-RSS-Feed>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc XML::RSS::Feed You can also look for information at: * AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/XML-RSS-Feed> * CPAN Ratings <http://cpanratings.perl.org/d/XML-RSS-Feed> * RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-RSS-Feed> * Search CPAN <http://search.cpan.org/dist/XML-RSS-Feed> ACKNOWLEDGEMENTS
Special thanks to Rocco Caputo, Martijn van Beers, Sean Burke, Prakash Kailasa and Randal Schwartz for their help, guidance, patience, and bug reports. Guys thanks for actually taking time to use the code and give good, honest feedback. COPYRIGHT &; LICENSE Copyright 2006 Jeff Bisbee, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
XML::RSS::Headline, XML::RSS::Headline::PerlJobs, XML::RSS::Headline::Fark, XML::RSS::Headline::UsePerlJournals, POE::Component::RSSAggre- gator perl v5.8.8 2006-07-17 XML::RSS::Feed(3pm)
All times are GMT -4. The time now is 09:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy