This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

The quest : working cygwin from a network mounted disk on a forein computer


Hello all,

Quiet version :
I would like to know if it is possible to get all unix commands from the command line (console) while accessing cygwin (on my local disk -- computer A) from a computer (computer B) that has mounted my local disk from the network (NT on Novell).  I am looking for bash to recognise unix style path (e.g. /usr/local/bin/).  The cygwin.bat file on computer B appears at the end.

Verbose version :
I am trying to access cygwin's unix tools intalled on my machine (which by the way work wonderfully well) from a collegue's computer by mounting my disk on is machine (the drive correspond to the same "letter" on both machines).  

Note 1- While tweeking with cygwin.bat (login --noprofile), I was abel to get the bash prompt.  I am able to navigate in the file system and run some program (ls, chmod, etc.) when specifying the absolute path MSWindows style (e.g. F:\unix\bin\..) or the relative path (../bin/ls).  

Note 2- My main problem is when I try to write shell script, the shell cannot execute the command as it does not recognise unix style path (e.g. /tmp).  I have tried to specify different PATH variables configuration (path all absolute MSstyle, unix style) it seems that PATH uses /cygdrive/f no matter how it is specify in the .bat file.  I tried to export a revied PATH but failed because PATH was not set correctly.

Note 3- I cannot install cygwin to every machine I visit (I am not the administrator and getting cygwin on my computer in the first place was much of a challenge) to use ssh or something else.  I was wondering if it could work with a very limited subset of files (cygwin1.dll and a few other) that can be copied to the local system (they would probably go unnoticed) while using the many .exe from the networked mounted disk (without having a full network installation of cygwin).

Note 4- Does cygwin have a special place that it checks to make the correspondance between / and the MSWindows equivalent ?  Could I specify that on my collegue's computer ?

Here is the cygwin.bat :

--- file begin ---
@echo off
SET MAKE_MOD=UNIX
SET HOME=F:\unix\home\daniel
SET CYGWIN=notty
SET TERM=builtin_xterm

SET PATH=F:\unix\usr\local\bin;F:\usr\X11R6\bin;F:\usr\bin;F:\bin;C:\WINNT\system32;C:\WINNT;C:\lgc\orant\bin;C:\WINNT\system32\nls\ENGLISH;./

CHDIR F:\unix\bin\

bash --noprofile
--- file end ---

I also tried 
SET PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/lgc/orant/bin:/cygdrive/c/WINNT/system32/nls/ENGLISH

and did not work (I always get an error : file or directory does not exist when using absolute unix style path)

Any help would be appreciated.  Many thanks all.

Daniel Chamberland-Tremblay

daniel dot chamberland at sympatico dot ca



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]