> -----Original Message-----
> From: Glenn Meyer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:01 PM
> 
> I am trying to build a script that helps archive data.  One 
> of the tasks I
> want it to do is to check to see if the directory path exists 
> and if not,
> to then create it.  The following code works fine everytime 
> when running
> the script manually.  However, I need to run it from an AT 
> command.  The
> script appears to work well everytime IF the directory path 
> already exists,
> but it will not create the directories on it's own - again, 
> this is only
> when run automatically from an AT command - running it 
> manually it does
> fine.  The Scheduler/Task Scheduler Service is running with the System
> account and the System account does have full permissions to 
> create the
> directories.
> 
> Here is the snip from the code......
> # If local_retention=yes then copies logs to local_store_path=
> if($options{local_retention} =~ m/yes/) {
>       my $lspath = $options{local_store_path};
>       if(!(-e $lspath)) {
>             &File::Path::mkpath($lspath);
>       }
> }
> 
> 
> Any thoughts?  Thank you!!!
> 

My first thought was permissions, as you and two others seem to have
thought.  I would try running a CMD prompt from the AT command, and then
execute the perl script from that shell.  If nothing else, maybe it will let
you see the error messages.

> 
> Glenn Meyer
> 
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. 
It is intended for the addressee(s) only. Access to this E-mail by anyone else is 
unauthorized. If you are not an addressee, any disclosure or copying of the contents 
of this E-mail or any action taken (or not taken) in reliance on it is unauthorized 
and may be unlawful. If you are not an addressee, please inform the sender immediately.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to