Pages

Wednesday, September 15, 2010

Example of providing auto input to a waiting shell process


In this instance pipes "y" to the called process to confirm we want the blog deleted.




(let ((delcommand  (format "yes y | google blogger delete --blog '%s'  --title '%s'"  googlecl-blogname  btitle)))
(message "Delete command is : %s" delcommand)
(call-process-shell-command delcommand))




--
My Emacs Files At GitHub

No comments:

Post a Comment