Re: Processing files in a directory
[email protected] ("Susheel Koushik") Mon, 10 Nov 2008 16:39:44 -0700
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
use the PERL system command. Its a wrapper for system call on your host OS.
ex: system("rm *.tmp");
susheel
On Mon, Nov 10, 2008 at 3:32 AM, [email protected] <[email protected]>wrote:
> Hi Everyone,
>
> I have around 2000 files in a directory. During processing of these
> files, a temp* will be created for each file and its removed after
> processing that file. If the processing is unsuccessful, temp* file
> still exists. Can u plz help me to write a script to automate this
> process using Perl ie., when a temp* file is found (which stays for
> abt 10 secs max), I hv to move that temp* file to some other folder.
>
> Thanks in advance,
> Satish
>
>
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> http://learn.perl.org/
>
>
>
--
Susheel Koushik M
Graduate Student
Ira A Fulton School of Engineering
Arizona State University