From: Arihan Sinha Date: 2010-10-28T20:33:31+09:00 Subject: Executing ruby command is not working from windows to mac connected by putty Hi All, I want to delete some files from Mac system where I am in the windows sytem. System1 ( win7) logged in with userid :- arihan.sinha system2( Mac system 172.20.10.65 name:- developers-iMac.local) loggedin with userid :- developer I am using putty to connect system1 to system2 where priviate key is in my window system1 and public key in mac system2. puts %x[c:\\Program Files (x86)\\PuTTY\\plink -i "C:\\Users\\arihan.sinha\\.ssh\\authorized_key.ppk" developer@developers-iMac.local "pwd"] %x[c:\\Program Files (x86)\\PuTTY\\plink -i "C:\\Users\\arihan.sinha\\.ssh\\authorized_key.ppk" developer@developers-iMac.local "cd Library"] puts %x[c:\\Program Files (x86)\\PuTTY\\plink -i "C:\\Users\\arihan.sinha\\.ssh\\authorized_key.ppk" developer@developers-iMac.local "pwd"] %x[c:\\Program Files (x86)\\PuTTY\\plink -i "C:\\Users\\arihan.sinha\\.ssh\\authorized_key.ppk" developer@developers-iMac.local "cd Library/Caches/Google/Chrome/Default/Cache"] puts %x[c:\\Program Files (x86)\\PuTTY\\plink -i "C:\\Users\\arihan.sinha\\.ssh\\authorized_key.ppk" developer@developers-iMac.local "pwd"] all cases its giving output as /Users/developer /Users/developer /Users/developer Can anyone please guide me If I am doing any mistakes. Cheers A -- Posted via http://www.ruby-forum.com/.