From: Stu Date: 2013-05-20T04:39:25+09:00 Subject: Re: output file from clipboard in unix For #1 instead of having the user run the script which your generating you can simply automate the shell with popen eval( i.e. the systems eval not the ruby version) or save the script and run it after it's generated from either system or backticks depending on your return values needs. Unless it's a design for the end user to make a decision console based users tend not to copy and paste text like gui end users. If you don't want to automate the process providing your end user a bit more control you could just dump the generated script to the standard out and allow the end user to use the shells redirection to put it into a file for execution. ~Stu