From: Jonathan Nielsen Date: 2010-08-08T03:59:33+09:00 Subject: Re: trouble with mysqldump --0016362848c236f2e9048d406261 Content-Type: text/plain; charset=UTF-8 On Sat, Aug 7, 2010 at 11:45 AM, Junkone wrote: > destination="e:\\tradingtools\\databackup\\#{dt}.sql" > system("#{program} --user=root --password=password dbtrader > >#{destination}") > > error that i get is > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > > You'll need to wrap the program name in quotes to use it with arguments like that. Try instead: system("\"#{program}\" --user=root --password=password dbtrader > \"#{destination}\"") Ideally you would pass each argument to system as a separate argument, like: system(program,"--user=root","--password=password", etc) But I don't know how to pipe the output of this to a file... perhaps someone else on the list can help. -Jonathan Nielsen --0016362848c236f2e9048d406261--