delorie.com/archives/browse.cgi | search |
From: | pete AT horus DOT cix DOT co DOT uk (Pete Jordan) |
Subject: | A tool for executing Windows and DOS programs from bash |
8 Aug 1997 10:36:01 -0700 : | |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <memo.19970808173803.65049A.cygnus.gnu-win32@horus.cix.co.uk> |
Reply-To: | gnu-win32 AT cygnus DOT com |
Mime-Version: | 1.0 |
Original-To: | gnu-win32 AT cygnus DOT com |
X-Mail-Software: | Ameol2 |
X-URL: | http://www.horus.cix.co.uk/ |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
I've written a little launch program that translates pathnames from GNU-Win32 format to Windows format so I can (for example) launch Word from bash by typing: $word foo.doc or: $word /usr/baz.doc The way it works is you create a symlink ("word") to my program (debash.exe) and add a line in an "/etc/debash" file that maps "word" onto the actual location of the target program and describes something of the sort of parameters that program requires. The path portion of each filename parameter is then matched against the mount table (with the path defaulting to `pwd`) and appropriate substitutions are made before using spawnvp() to launch the target app. It's a bit of a kludge ATM, but it does what I want so... If anyone is interested, I can make it available - GPLed of course :) Pete Jordan = = = = = = = = = = = = = = = = = = = = = = = Horus Communications http://www.horus.cix.co.uk/ = = = = = = = = = = = = = = = = = = = = = = = "Is a polar bear a rectangular bear after a coordinate transform?" - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |