Re: environment variables in ssh non-interactive shell

2012-11-13 Thread Ariel Sommeria
So, indeed there was no terminal attached. I like your example, but I couldn't get it to run. It's as if bash doesn't work properly. I got my script more or less to work, though it seems a bit inelegant like this: ssh user@myserver -t -t myscript.sh It still runs a bit weird, but it does the

Re: environment variables in ssh non-interactive shell

2012-11-13 Thread Ariel Sommeria
in the doc on the environment file, it explicitly states that there can only be key/value pairs, no commands. I tried, and it generates an error. But like I said I sort of got it to work, so thanks! On Mon, Nov 12, 2012 at 7:04 PM, Eliot Moss m...@cs.umass.edu wrote: On 11/12/2012 7:10 AM, Ariel

environment variables in ssh non-interactive shell

2012-11-12 Thread Ariel Sommeria
Hi, I'm trying to use environment variables to pilot a windows system through cygwin+ssh. Things work nicely with an interactive shell, but mess up with a non-interactive shell because my environment variables aren't set. I've set PermitUserEnvironment to yes in my sshd_config, I've set BLA=bla in

Re: environment variables in ssh non-interactive shell

2012-11-12 Thread Brian Wilson
I'm trying to use environment variables to pilot a windows system through cygwin+ssh. Things work nicely with an interactive shell, but mess up with a non-interactive shell because my environment variables aren't set. -snip- Does anyone have an idea what could be wrong? I'd suggest a

Re: environment variables in ssh non-interactive shell

2012-11-12 Thread Eliot Moss
On 11/12/2012 7:10 AM, Ariel Sommeria wrote: Hi, I'm trying to use environment variables to pilot a windows system through cygwin+ssh. Things work nicely with an interactive shell, but mess up with a non-interactive shell because my environment variables aren't set. I've set