Mail Archives: cygwin/2003/03/18/17:21:56
On Tue, 18 Mar 2003, Daniel Chamberland-Tremblay wrote:
> 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 ?
Yes. It's called the "mount table".
> [snip]
> Any help would be appreciated. Many thanks all.
> Daniel Chamberland-Tremblay
Try the following:
1) Run "mount -m | sed 's^C:/^F:/^' > /copy_mounts.bat" on your computer
(computer A)
2) Run the resulting copy_mounts.bat on the remote computer (computer B)
Voila. Your remote machine should now think it's Cygwin's / is in
"F:\unix".
Igor
P.S. The above assumes that you have your Cygwin / on computer A in
"C:\unix", and that computer A's C:\ disk is mounted on computer B as F:\
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
-- /usr/games/fortune
--
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/
- Raw text -