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

Home » Public Forums » archive » Re: Cross-platform PWD
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: Cross-platform PWD [message #11898] Wed, 03 June 1998 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
>> IDL> cd, current=thedir
>> IDL> print, thedir
>>
>> Cathy Campo
>>
>> Congratulations, Cathy!
>
> Now hold on a minute. Cathy got that out of my book! :-)
>
> David


David,

I guess I need to read your book more carefully! ;-)

Heretofore all my development has been on a Unix box,
so I am now beginning to learn to write code that can
run on multiple platforms. A new and fun challenge!

I have written some useful widget tools for the folks
here at NOAA-CIRES/CDC, and chapters 10-12 of your book
have been *very* helpful.

--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
Re: Cross-platform PWD [message #11906 is a reply to message #11898] Tue, 02 June 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Andy Loughe wrote:
>
> Greetings,
>
> Be the first to email me the answer to this question...
> it took me over 30 minutes to figure it out... and I will
> post your name as "IDL GENTLEMAN/LADY OF THE DAY".
>
> What is the simplest "cross-platform" method for
> obtaining the present working directory?
>
> P.S. It is not... spawn, 'pwd', pwd & print, pwd
> but the syntax is very close to this.

Prepare yourself, this is pretty profound:

cd, current=curdir

The Online help implies that this works across platforms (or at least
doesn't say it doesn't).

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: Cross-platform PWD [message #11908 is a reply to message #11906] Tue, 02 June 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Andy Loughe (afl@cdc.noaa.gov) writes:

> The IDL GENTLELADY OF THE DAY is...
>
> Date: Tue, 2 Jun 1998 15:19:57 -0700 (PDT)
> To: afl@cdc.noaa.gov
> Subject: cross platform pwd
>
> andy asked:
> what is the simplest "cross-platform" method for
> obtainng the present working directory?
>
> my answer:
>
> IDL> cd, current=thedir
> IDL> print, thedir
>
> Cathy Campo
>
> Congratulations, Cathy!

Now hold on a minute. Cathy got that out of my book! :-)

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Cross-platform PWD [message #11909 is a reply to message #11906] Tue, 02 June 1998 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
The IDL GENTLELADY OF THE DAY is...


Date: Tue, 2 Jun 1998 15:19:57 -0700 (PDT)
To: afl@cdc.noaa.gov
Subject: cross platform pwd

andy asked:
what is the simplest "cross-platform" method for
obtainng the present working directory?

my answer:

IDL> cd, current=thedir
IDL> print, thedir

Cathy Campo


Congratulations, Cathy!


--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: find_subtree.pro
Next Topic: subpixel image movement by bicubic interpolation?,

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

Current Time: Wed Oct 15 15:44:07 PDT 2025

Total time taken to generate the page: 0.88040 seconds