niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
something like CPAN::AutoInc for scripts
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Ted Zlatanov
*nix forums addict


Joined: 12 Apr 2005
Posts: 86

PostPosted: Wed Jun 07, 2006 8:18 pm    Post subject: something like CPAN::AutoInc for scripts Reply with quote

I would like to distribute a script to users, but the source may
change. So I want to do something like CPAN::AutoInc, but for
scripts.

You'd say "perl -MScript::AutoInc -e'go "TEODOR", "http://lifelogs.com/runthis.pl"'

the script would begin with

use Script::AutoInc qw[TEODOR http://lifelogs.com/runthis.pl];

.... actual script here ...

When you run it, if it's updated, the script will get the new version
and overwrite the old one (if possible). Then it runs the new
version. So just that first line is enough as a stub. But if the
external server is not accessible, or the user wants to skip the
update check, they have the option to run the current version of the
script.

The "TEODOR" CPAN name gets a public key and checks if the released
script is signed appropriately for some small measure of security.

Has this been done before? I can put a module together quickly
myself, but wanted to make sure I'm not missing an existing module.

Thanks
Ted
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 4:59 am | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org... PerlFAQ Server Perl 0 Wed Jul 19, 2006 1:03 pm
No new posts Module::Build / version / cpan / tail chasing sbk Perl 2 Sun Jul 16, 2006 11:09 pm
No new posts SUID C Wrappers for scripts zcorce@aol.com Solaris 1 Fri Jul 14, 2006 7:34 pm
No new posts FAQ 2.4 I copied the perl binary from one machine to anot... PerlFAQ Server Perl 0 Fri Jul 14, 2006 1:03 am
No new posts Help with /etc/rc0.d scripts A Solaris 5 Thu Jul 13, 2006 10:23 pm

NFL Talk Football Forums | Debt Consolidation | Loans | Car Loan | Bankruptcy
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2660s ][ Queries: 16 (0.1965s) ][ GZIP on - Debug on ]