* RE: Bash PATH via ssh
@ 2003-01-13 3:04 lhall
2003-01-13 3:23 ` OCR/Barcode recognition Bruce Dobrin
2003-01-13 3:23 ` Bash PATH via ssh Michael Hipp
0 siblings, 2 replies; 6+ messages in thread
From: lhall @ 2003-01-13 3:04 UTC (permalink / raw)
To: michael, cygwin
I believe it's correct to assume that the invocation
of bash via ssh is a login shell, not an interactive
shell. Cygwin puts its path additions in /etc/profile.
The corallary for a user would be ~/.profile, ~/.bash_profile
or ~/.bash_login as the INVOCATION section of the bash man page
suggests.
Larry
Original Message:
-----------------
From: Michael Hipp Michael@Hipp.com
Date: Wed, 8 Jan 2003 13:09:59 -0600
To: cygwin@cygwin.com
Subject: Bash PATH via ssh
Hello, first post.
From a remote machine I'm doing something like:
ssh 192.168.0.150 'echo $PATH'
All the path appears to be set to is the Windows system path. I've put path
amendments into /.bashrc and ~/.bashrc. As well as in the bash.bashrc files
in /etc. Where do I put the path statements so they have effect when
invoked from ssh so I can get things like /bin into the path?
(I've read man bash invocation and searched the mailing list archives.)
Thanks,
Michael
--
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/
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bash PATH via ssh
2003-01-13 3:04 Bash PATH via ssh lhall
2003-01-13 3:23 ` OCR/Barcode recognition Bruce Dobrin
@ 2003-01-13 3:23 ` Michael Hipp
2003-01-13 3:23 ` Pierre A. Humblet
1 sibling, 1 reply; 6+ messages in thread
From: Michael Hipp @ 2003-01-13 3:23 UTC (permalink / raw)
To: cygwin
Thanks. I now have ensured that ~/.profile, ~./bash_profile, ~/.bash_login,
/etc/profile all contain the lines:
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
export PATH
But still when I do ssh 192.168.0.150 'echo $PATH' it returns only the
windows path items. What am I missing here?
Any help appreciated.
Michael
----- Original Message -----
From: <lhall@pop.ma.ultranet.com>
To: <michael@hipp.com>; <cygwin@cygwin.com>
Sent: Wednesday, January 08, 2003 1:18 PM
Subject: RE: Bash PATH via ssh
I believe it's correct to assume that the invocation
of bash via ssh is a login shell, not an interactive
shell. Cygwin puts its path additions in /etc/profile.
The corallary for a user would be ~/.profile, ~/.bash_profile
or ~/.bash_login as the INVOCATION section of the bash man page
suggests.
Larry
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* OCR/Barcode recognition
2003-01-13 3:04 Bash PATH via ssh lhall
@ 2003-01-13 3:23 ` Bruce Dobrin
2003-01-13 3:23 ` Bash PATH via ssh Michael Hipp
1 sibling, 0 replies; 6+ messages in thread
From: Bruce Dobrin @ 2003-01-13 3:23 UTC (permalink / raw)
To: cygwin
Slightly off topic:
I've been trying to compile "gocr" in cygwin with limited success (even when
I get it to build, it doesn't work very reliably), has anyone had any luck
with another OCR/barcode recognition package in Cygwin? ( I need something
to reliably be able to extract barcode data from an imagefile as part of a
perl script...)
Thanks
Bruce D
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bash PATH via ssh
2003-01-13 3:23 ` Bash PATH via ssh Michael Hipp
@ 2003-01-13 3:23 ` Pierre A. Humblet
2003-01-13 3:30 ` Corinna Vinschen
0 siblings, 1 reply; 6+ messages in thread
From: Pierre A. Humblet @ 2003-01-13 3:23 UTC (permalink / raw)
To: cygwin
On Wed, Jan 08, 2003 at 02:02:06PM -0600, Michael Hipp wrote:
> Thanks. I now have ensured that ~/.profile, ~./bash_profile, ~/.bash_login,
> /etc/profile all contain the lines:
>
> PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
> export PATH
>
> But still when I do ssh 192.168.0.150 'echo $PATH' it returns only the
> windows path items. What am I missing here?
>
> Any help appreciated.
The Cygwin sshd passes the PATH that exists in the system environment.
Edit it by right clicking My Computer, etc..
Pierre
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bash PATH via ssh
2003-01-13 3:23 ` Pierre A. Humblet
@ 2003-01-13 3:30 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2003-01-13 3:30 UTC (permalink / raw)
To: cygwin
On Wed, Jan 08, 2003 at 02:54:21PM -0500, Pierre A. Humblet wrote:
> On Wed, Jan 08, 2003 at 02:02:06PM -0600, Michael Hipp wrote:
> > Thanks. I now have ensured that ~/.profile, ~./bash_profile, ~/.bash_login,
> > /etc/profile all contain the lines:
> >
> > PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
> > export PATH
> >
> > But still when I do ssh 192.168.0.150 'echo $PATH' it returns only the
> > windows path items. What am I missing here?
> >
> > Any help appreciated.
>
> The Cygwin sshd passes the PATH that exists in the system environment.
> Edit it by right clicking My Computer, etc..
Uhm... in theory, there should be at least "/bin" somewhere in $PATH.
The reason is that `cygrunsrv' appends ":/bin" to $PATH prior to
calling the service application (sshd) to assure that cygwin1.dll is
found in $PATH.
Other than that you can use the ability of cygrunsrv to set environment
variables also to set $PATH:
cygrunsrv -I sshd ... -e "PATH=/cygdrive/c/WINDOWS:..."
Just don't forget to add all Windows system paths, too.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Bash PATH via ssh
@ 2003-01-13 3:04 Michael Hipp
0 siblings, 0 replies; 6+ messages in thread
From: Michael Hipp @ 2003-01-13 3:04 UTC (permalink / raw)
To: cygwin
Hello, first post.
From a remote machine I'm doing something like:
ssh 192.168.0.150 'echo $PATH'
All the path appears to be set to is the Windows system path. I've put path
amendments into /.bashrc and ~/.bashrc. As well as in the bash.bashrc files
in /etc. Where do I put the path statements so they have effect when
invoked from ssh so I can get things like /bin into the path?
(I've read man bash invocation and searched the mailing list archives.)
Thanks,
Michael
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-01-09 9:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 3:04 Bash PATH via ssh lhall
2003-01-13 3:23 ` OCR/Barcode recognition Bruce Dobrin
2003-01-13 3:23 ` Bash PATH via ssh Michael Hipp
2003-01-13 3:23 ` Pierre A. Humblet
2003-01-13 3:30 ` Corinna Vinschen
2003-01-13 3:04 Michael Hipp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).