Sponsored Content
Full Discussion: /bin/sh and /bin/ksh problem
Top Forums Shell Programming and Scripting /bin/sh and /bin/ksh problem Post 302298403 by talashil on Tuesday 17th of March 2009 12:13:39 PM
Old 03-17-2009
Thankyou Guys .
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. UNIX for Dummies Questions & Answers

Difference between /bin, /usr/bin, /sbin ?

Hi All, Can somebody tell me the difference between /bin, /usr/bin, /sbin ? Thanx in advance, Saneesh Joseph (3 Replies)
Discussion started by: saneeshjose
3 Replies

3. Shell Programming and Scripting

#!/bin/sh and #!/bin/ksh

Hi All, I have a shell (#!/bin/sh) with below piece of code: if ! then echo Staging table ABC_INT_TAB is not present in the schema >> $OUTPUT fi Shell is throwning below error and continue to work even after this error... (3 Replies)
Discussion started by: bhush782003
3 Replies

4. Shell Programming and Scripting

Why does my /bin/csh take longer than /bin/perl?

Okay, so I have two "Hello, world!" scripts, "test.pl" and "test.sh". #!/bin/perl -w use strict; print "Hello, world!\n"; #!/bin/csh echo Hello,\ world! When I run test.pl, it runs instantly, always. When I run test.sh, it takes anywhere between 4 and 22 seconds! I'd like to know what... (3 Replies)
Discussion started by: acheong87
3 Replies

5. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

6. UNIX for Dummies Questions & Answers

Alias /usr/bin to /bin in profile

Hi! All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies

7. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

8. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

9. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

10. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 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 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy