Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <5DABF7424840D411BE9600508B6621F802A0B653@exchukthis02.experian.co.uk> From: "Ebrey, Carl" To: "'cygwin AT cygwin DOT com'" Subject: RE: Fortran executables Date: Thu, 25 Oct 2001 12:14:47 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" You probably want to do ./myprog to run it. ./program runs a command from within the current directory. HTH, Carl > -----Original Message----- > From: Robert Livesey [mailto:robert DOT livesey AT st-hughs DOT oxford DOT ac DOT uk] > Sent: Thursday, October 25, 2001 12:05 PM > To: cygwin AT cygwin DOT com > Subject: Fortran executables > > > The problem I'm having is that after I've compiled a fortran > program using the command: > g77 -o myprog myprog.f > > The executable it creates does not run from the directory I'm > sitting in. The message "Command not found" appears. > However if I move myprog to the default /bin directory it > does work. I was wondering how I can make my programs work > anywhere and not just in the bin folder ? If this is not > possible is there a way of creating my own folder like the > /bin directory ? > > As you can probably tell I'm new to fortran and also unix so > any help would be greatly appreciated. > > Thanks > > Rob > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > ======================================================================= Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/