Help for KProcess
Maniac
Maniac at alltel.net
Thu Jan 6 18:51:26 GMT 2000
On Wed, 29 Dec 1999, you wrote:
>
> Hello,
>
> I have a problem with KProcess.
> Here this that I would want to make:
> I have a directory containing a MySQL database who serves me of pattern (/usr/mysql/modele).
> I create a new database who is going to serve me for my software (for example /usr/mysql/THOMAS).
> I must copy the whole some tables of the database "modele" toward the database "THOMAS"
> I use the for it orders: cp /usr/mysql/modele/* /usr/mysql/THOMAS
>
> After numerous tests with KProcess I don't have any result. Here the used code.
> Someone would can he say me this who doesn't go.
>
> Thank you.
>
> source = "/var/mysql/modele/*";
>
> destination = "/var/mysql/" + base + QString("/");
>
> KShellProcess proc;
>
> proc.clearArguments();
>
> proc << "cp " + (QString) "'" + source + (QString) "' '" + destination + (QString) "'";
Here is your problem If I remember the documentation correctly
Try
proc << "cp " ;
proc << (QString) "'" + source + (QString) "' '" + destination + (QString) "'";
Let us know if this works.
Maniac at alltel.net
A single tasking guy in a multitasking world.
More information about the KDevelop
mailing list