{"id":12805,"date":"2021-12-10T06:15:35","date_gmt":"2021-12-10T06:15:35","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=12805"},"modified":"2021-12-10T06:16:03","modified_gmt":"2021-12-10T06:16:03","slug":"bash-spawn-command-not-found","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/linux\/bash-spawn-command-not-found\/31814.html","title":{"rendered":"-Bash: Spawn: Command Not Found"},"content":{"rendered":"<p>#!\/usr\/bin\/expect<br \/>\nspawn sftp &lt;user@server&gt;<br \/>\nexpect &#8220;password:&#8221;<br \/>\nsend &#8220;pwd\\n&#8221;;<br \/>\nexpect &#8220;sftp&gt;&#8221;<br \/>\nsend &#8220;cd incoming\\n&#8221;<br \/>\nexpect &#8220;sftp&gt;&#8221;<br \/>\nsend &#8220;put zz.txt\\n&#8221;<br \/>\nexpect &#8220;sftp&gt;&#8221;<br \/>\nsend &#8220;quit\\n&#8221;<br \/>\nsend &#8220;exit\\n&#8221;<\/p>\n<p>-bash: spawn: command not found<br \/>\ncouldn&#8217;t read file &#8220;password:&#8221;: no such file or directory<br \/>\n-bash: send: command not found<br \/>\ncouldn&#8217;t read file &#8220;sftp&gt;&#8221;: no such file or directory<br \/>\n-bash: send: command not found<br \/>\ncouldn&#8217;t read file &#8220;sftp&gt;&#8221;: no such file or directory<br \/>\n-bash: send: command not found<br \/>\ncouldn&#8217;t read file &#8220;sftp&gt;&#8221;: no such file or directory<br \/>\n-bash: send: command not found<br \/>\n-bash: send: command not found<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":4},"question-category":[58],"question_tags":[],"class_list":["post-12805","question","type-question","status-publish","hentry","question-category-linux"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/12805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=12805"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=12805"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=12805"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=12805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}