[Israel.pm] Renaming folder using perl

Gabor Szabo szabgab at gmail.com
Tue May 5 03:42:09 PDT 2009

On Tue, May 5, 2009 at 2:15 PM, Berler Chanan <chananb at centerity.com> wrote:
> Hi All,
> I need to write a script that renames the folder the script is running from:
> The idea to rename the current folder to a back_<localtime>, then download a
> zip file and extract it
> (the main Idea to replace the current agent with another nagios agent).
> Problem: how can I rename the current folder the script is running from ?
> trying rename function fails (like system rename).

Can you show us
Operating system ?
Perl version ?
Error message you get ?
Your code ?


More information about the Perl mailing list