Re: Problem with ssh in non-interactive mode and mapped drives

2011-11-28 Thread Andrey Repin
Greetings, Costin Caraivan! > When running the command non-interactively, with this: ssh > projectct...@locationsd-vm-admin.project.company.com 'COMMAND', I get > this: > No such file: /cygdrive/z/builds/latest/PROJECT_TM.zip > bash: line 0: [: c3e3cb8bb6b7b07915755ba8d242fa56: unary operator expe

Re: Problem with ssh in non-interactive mode and mapped drives

2011-11-28 Thread Costin Caraivan
Scratch that. I'm launching Cygwin command on a Windows 2008 machine with lots of users, and the PATH is messed up beyond all recognition. I'm now using the absolute paths of the tools and everything works as expected. Sorry for the spam. -- Problem reports: http://cygwin.com/problems.html

Problem with ssh in non-interactive mode and mapped drives

2011-11-28 Thread Costin Caraivan
Hello, I have a mapped drive pointing to a Windows network share. In this share I have several files for which I'm checking the MD5 with this command: if [ `/bin/cat /cygdrive/z/builds/latest/PROJECT.MD5 | grep PROJECT_TM | cut -f 1 -d " "` == `md5sum.exe /cygdrive/z/builds/latest/PROJECT_TM.zip |