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

Home » Public Forums » archive » Re: Deleting files from IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Deleting files from IDL [message #4258] Fri, 19 May 1995 00:00
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
In article i1r@rockall.cc.strath.ac.uk, cabr69@ccsun.strath.ac.uk ( "D.H.Brooks") writes:
> I'm running under Unix and if i use
> spawn,'rm filename'
> it doesn't work since filename in the IDL code is a variable (e.g.state.file)

So why not say:
spawn,'rm '+filename

- William Connolley wmc@bas.ac.uk
Re: Deleting files from IDL [message #4271 is a reply to message #4258] Thu, 18 May 1995 00:00 Go to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
cabr69@ccsun.strath.ac.uk ( "D.H.Brooks") wrote:
> I'm running under Unix and if i use
>
> spawn,'rm filename'
>
> it doesn't work since filename in the IDL code is a variable (e.g.state.file).What i
> would really like is an IDL command which removes a file but i don't > know of any.

I would suggest

IDL> spawn,'rm '+state.file

or have I misunderstood?

Fergus

=================================================
| Fergus Gallagher |
| Remote Sensing Applications Development Unit |
| British National Space Centre |
| Monks Wood |
| Huntingdon PE17 2LS / UK |
| |
| F.Gallagher@nerc.ac.uk |
| http://uh.nmt.ac.uk/bnsc/fgg.html |
=================================================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: complex math error?
Next Topic: % X Windows protocol error

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

Current Time: Sat Oct 11 10:07:33 PDT 2025

Total time taken to generate the page: 0.80331 seconds