Re: IDL archive utility? [message #48527] |
Wed, 26 April 2006 09:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
James Everton writes:
> Is there some sort of archive utility in IDL? I need to be able to
> archive files from the IDL command line, and I also need to be able to
> perform that archive when someone is using the IDL Virtual Machine.
>
> Normally, I would make a call to .tar or .zip up the file, however
> mac-users and windows-users alike will be trying to use this program,
> so I need something that can go across both platforms.
>
> If one of you knows of an IDL built-in utility, that would be great. If
> not, does anyone know of a good cross-platform archiver that I could
> look into using that will still work with the Virtual Machine?
Have you been using IDL long?
Cheers,
David
P.S. I would recommend spending more time reading the newsgroup
and less time reading the marketing materials supplied with IDL. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: IDL archive utility? [message #48528 is a reply to message #48527] |
Wed, 26 April 2006 08:59  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"James Everton" <james.everton@gmail.com> writes:
> Hi everybody,
>
> Is there some sort of archive utility in IDL? I need to be able to
> archive files from the IDL command line, and I also need to be able to
> perform that archive when someone is using the IDL Virtual Machine.
>
> Normally, I would make a call to .tar or .zip up the file, however
> mac-users and windows-users alike will be trying to use this program,
> so I need something that can go across both platforms.
>
> If one of you knows of an IDL built-in utility, that would be great. If
> not, does anyone know of a good cross-platform archiver that I could
> look into using that will still work with the Virtual Machine?
Isn't that exactly what IDL 'save' files are for? The files are
cross-platform for all machines that IDL runs on.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: IDL archive utility? [message #48529 is a reply to message #48528] |
Wed, 26 April 2006 09:07  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
James Everton wrote:
> Is there some sort of archive utility in IDL? I need to be able to
> archive files from the IDL command line, and I also need to be able to
> perform that archive when someone is using the IDL Virtual Machine.
>
> Normally, I would make a call to .tar or .zip up the file, however
> mac-users and windows-users alike will be trying to use this program,
> so I need something that can go across both platforms.
>
> If one of you knows of an IDL built-in utility, that would be great. If
> not, does anyone know of a good cross-platform archiver that I could
> look into using that will still work with the Virtual Machine?
>
I don't know of a built-in utility, but I use the command-line tool
info-zip (http://www.info-zip.org/), called with a "spawn" command from
IDL. I never tried, but that should work from within the VM, I think.
I believe info-zip is the zip utility which comes with most Linux
distributions by default. In Windows, just make sure it's in the path
(that will be the user's responsibility). If it works on Linux, it
should work on the Mac as well, I hope.
Good luck,
Benjamin
|
|
|