Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Aging Script

by OzzyOsbourne (Chaplain)
on Aug 14, 2001 at 15:41 UTC ( #104746=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: Re: Aging Script
in thread Aging Script

Option 1:In order to use the otions in the script, you have to have getopt::Std installed (use Getopt::Std) as mentioned at the top of the script. Read here for more info. This should solve your issue.

Option 2:Wipe out all of the options, and setting $agedays=$ARGV[0] which would be the same as running agecmd.pl days. This requires no additional modules, but you'd have to rewrite the error checking so that the argument is a number and not "xfl" or something equally incorrect. Here is a thread referencing this option.

Option 3: Or you can wipe out the whole options section at the top and just simply set $agedays to whatever number of days you require.

-OzzyOsbourne


Comment on Re: Re: Re: Re: Re: Re: Re: Aging Script
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://104746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls