comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Return the name of the last (newest) file ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Return the name of the last (newest) file ? [message #31674 is a reply to message #31673] Tue, 13 August 2002 10:05 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Kolbjorn Bekkelund wrote:
>
> Hi.
>
> I'm modifying an old IDL-routine (under Linux and IDL 5.4), plotting some of our ozone lidar data.
> This has to be done manually today, but I'm working against an automation
> of this job now. The final stage here is to have IDL run by cron, finding the last
> (newest) file by itself and process it.
>
> Now I'm using this approach:
>
> FileTable=dialog_pickfile(/read, filter='/data/ozon/dialdata/ozon-online/*')
>
> which isn't very automatic :-)
>
> The structure of the filesystem is like this:
>
> /data/ozon/dialdata/ozon-online/
>
> and a listing of that directory gives:
>
> [kolbjorn@antares ozon-online]$ ls
> AUG12_02.001 AUG12_02.008 AUG12_02.015 AUG12_02.022 AUG12_02.029
> AUG12_02.002 AUG12_02.009 AUG12_02.016 AUG12_02.023 AUG12_02.030
> AUG12_02.003 AUG12_02.010 AUG12_02.017 AUG12_02.024 AUG12_02.031
> AUG12_02.004 AUG12_02.011 AUG12_02.018 AUG12_02.025 AUG12_02.032
> AUG12_02.005 AUG12_02.012 AUG12_02.019 AUG12_02.026 AUG12_02.033
> AUG12_02.006 AUG12_02.013 AUG12_02.020 AUG12_02.027 AUG13_02.034
> AUG12_02.007 AUG12_02.014 AUG12_02.021 AUG12_02.028
>
> I would be very happy for all the help I could get !

How about this?

spawn, 'ls -1rt /data/ozon/dialdata/ozon-online | tail -1', lastfile
print, lastfile

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Scrolling in draw widgets - newbie's question
Next Topic: Return the name of the last (newest) file ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:59:03 PDT 2025

Total time taken to generate the page: 0.00397 seconds