This is the mail archive of the
cygwin
mailing list for the Cygwin project.
UNC within the PATH
- From: junk at jake8us dot org
- To: cygwin at cygwin dot com
- Date: Fri, 11 Mar 2005 02:39:51 -0500
- Subject: UNC within the PATH
- Reply-to: Sam M <junk at jake8us dot org>
I've been messing around with a PATH like this:
PATH=....;\\machine\share
I then place bash scripts in \\machine\share\ts1.sh and in c:\ts2.sh
ts1.sh & ts2.sh look like this:
#!/bin/sh
echo "hello world"
Finally I created a file association for the extension .sh so that it
will use c:\cygwin\bin\bash.exe.
I then try to run ts1.sh & ts2.sh the following ways from a cmd.exe
window:
1% ts1.sh
\machine\share\ts1.sh: \machine\share\ts1.sh: No such file or directory
2% \\machine\share\ts1.sh
\machine\share\ts1.sh: \machine\share\ts1.sh: No such file or directory
3% c:\cygwin\bin\bash.exe \\machine\share\ts1.sh
hello world
4% c:\ts2.sh
hello world
Can anyone shed some light on why 1 & 2 won't work with cygwin's
bash.exe and/or sh.exe?
Note I can get 1 & 2 to work using MKS Software's nutcracker suite.
--
####[ Linux One Stanza Tip (LOST) ]###########################
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
Sub Killing a Process (#3) LOST #150
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
To kill a process by name, use the killall command. To kill a
failed fetchmail session on tty1 as an user, log into another
console, and issue the command "killall fetchmail". Be careful
with this command as root, since all instances of the program
used by *all* users will be killed !!!
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
####<bish@nde.vsnl.net.in>####################################
_ _
\|/ o' \,=./ `o
@-@ http://www.jak8us.org/~sam/ (o o)
--ooO--(_)--Ooo---=--=---=--=---=---=---=--=---ooO--(_)--Ooo--
\ /
GPG Pub. Key: http://www.jake8us.org/~sam/pubkey.asc
--..---..---..---..---..---..---..---...---..---..---..---..--
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/