From: Bharat Ruparel Date: 2007-07-12T01:08:05+09:00 Subject: Re: running linux command from inside Bertram Scharpf wrote: > Hi, > > Am Mittwoch, 11. Jul 2007, 23:55:29 +0900 schrieb Jeffrey Bowen: >> Can I run a linux command inside a ruby program. Like >> >> history >> => 63 history >> history -d63 > > `history' is not a Linux "command", it is a Bash command. > > What for do you need a command history when you're not on a > command line? > > Bertram Since it is a Bash specific command why can't you just run a Bash command file using `` or system commands? That command file can contain the Bash specific invocaion commands in the first line or any other language for that matter. I don't think it is a good idea to make your client aware of the specificity of the called program. -- Posted via http://www.ruby-forum.com/.