From: "Peña, Botp" Date: 2008-07-26T17:00:34+09:00 Subject: Re: net/ssh exec builtin command (cd) From: Une Bévue [mailto:unbewusst.sein@weltanschauung.com.invalid] # when using ssh.exec!("ls -al") everything is ok however, if i # try to use # "cd /path/to" (a shell builtin command) i get back : # exec: 4: cd: not found # on the device a "which cd" returns nothing. # is there a workaround ? show net/ssh version and code pls. eg, i just run this, Net::SSH.start( "10.2.10.1", "botp:)", :password=>"secret=)") do |session| puts session.exec! "cd /etc; ls -la" end outputs=> (irb):57: warning: parenthesize argument(s) for future version total 1220 drwxr-xr-x 100 root root 8192 2008-06-25 19:40 . drwxr-xr-x 30 root root 4096 2008-06-25 18:50 .. -rw-r--r-- 1 root root 2149 2006-04-07 16:16 adduser.conf -rw-r--r-- 1 root root 44 2008-06-25 19:37 adjtime -rw-r--r-- 1 root root 65 2006-04-28 18:52 aliases -rw-r--r-- 1 root root 12288 2008-05-05 15:29 aliases.db drwxr-xr-x 2 root root 8192 2008-06-25 18:53 alternatives .... works, right? kind regards -botp