Having a nice Linux-like terminal for Microsoft Windows

Post in this forum all topics related to all sesarray softwares, not a particular one.
admin
Site Admin
Posts: 408
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Having a nice Linux-like terminal for Microsoft Windows

Postby admin » Wed Jan 02, 2008 8:05 am

If you are running Linux or Mac OS X this topic is of no interest for you. It is only for Windows users who want to enjoy all command line options available with all the softwares shipped with sesarray.

If you are running geopsy -h from a MS-DOS terminal (if the PATH environment variable is properly set) you will get absolutely no output whereas under Linux you get some useful information. To get it, you can install MSYS for Microsoft Windows which is a Linux-like terminal. After installation you can run geopsy through it:

Code: Select all

/c/Program\ Files/sesarray/bin/geopsy -h

'\' is to "protect" the space in a directory name. If not present, the invoked command would have been: "/c/Program" which leads directly to an error. geopsy is assumed to be installed in "C:\Program Files\sesarray" (default). Note the different ways of specifying path in MSYS and in all other Microsoft Windows applications.

If you are a bit lazy, and you don't want to type the whole path to run geopsy, you have to add the installation path of geopsy into the PATH environment variable. Create a new file called ".profile" in your home directory:

Code: Select all

# Make sure you go home
cd
echo 'export PATH=/c/Program\ Files/sesarray/bin:$PATH' >> .profile

Close MSYS terminal and restart it. Now just try it, type "geopsy -h" you should get something like:

Code: Select all

Usage: geopsy [OPTIONS]
Graphical user interface for a geopsy database. To use tools from command line
interface, you must specify either a signal file (option -file) or a group
inside a database (options -db and -group).

Geopsy options:
  -file <FILE>              Load signal FILE
  -db <FILE.gpy>            Open database contained in FILE.gpy
  ...

florence renalier
Posts: 1
Joined: Fri Jul 23, 2010 9:40 am

Info : Cygwin and help in command line with X11

Postby florence renalier » Fri Jul 23, 2010 10:01 am

Hello,

Just a piece of information for those who want to use command lines under Windows :

Instead of using MSys, I am personnally using Cygwin for using dinver in command line (for some particular applications only). It is possible to see the dinver or geopsy help in command line (dinver -h or geopsy -h) by downloading the X11 packages available with Cygwin. Without this package, typing dinver -h under a Cygwin terminal did not produce anything.

There are certainly similar packages for MSys users ???

Florence.

admin
Site Admin
Posts: 408
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Having a nice Linux-like terminal for Microsoft Windows

Postby admin » Mon Nov 14, 2016 3:03 pm

There is a new software with a full featured terminal under Windows, it is not open source but it is free and much better than MSYS:

https://mobaxterm.mobatek.net/download.html

After start-up, click on "Session", then click on "Shell", then you are done.

To change directory to your Windows drives (e.g. c:\):

Code: Select all

cd /drives/c

To run geopsy:

Code: Select all

/drives/c/Program\ Files/Geopsy.org/bin/geopsy

In the free version, I could not find any way to set PATH environment variable at start-up. One work arround can be to create a file and source it at each start-up:

Code: Select all

echo 'export PATH=/drives/c/Program\ Files/Geopsy.org/bin:$PATH' > /drives/c/Program\ Files/Geopsy.org/env

At each start-up of a new session, run:

Code: Select all

source /drives/c/Program\ Files/Geopsy.org/env

It can be recalled easily by hitting CTRL+r, and typing "source", the full command will appear


Return to “General usage”

Who is online

Users browsing this forum: No registered users and 2 guests