setting environment for bash running via cygserver

Alan Sinclair alan.sinclair@citrix.com
Fri Sep 9 17:50:00 GMT 2011


Where can I set environment variables which will be available in a 
bash script running under cygserver?

I need to ssh onto a remote cygserver and run bash scripts. RSA keys 
are all set up so no password is needed and I can ssh onto the target 
machine just fine by doing 
    ssh me@machine bash ~/myscript.sh ARGS 

But myscript.sh is not getting the environment it needs. For example, 
the script needs PROGRAMFILES, and also needs PROCESSOR_ARCHITEW6432 
set in the environment on 64-bit OS.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list