ioannisb
9th February 2006, 15:14
Hi there!
Do you have any idea, why this is not working for me?
Qprocess seems that doesn't handle well the process arguments..
When I run a command like "ls -l" with one argument, it works fine..... but ..
connecting with "pppd call vodafone" , is not working....
Thanks in advance.
....................
void Form1::callfunc()
{
textEdit1->append("Starting pppd daemon...");
process = new QProcess(this);
process->addArgument( "pppd" );
process->addArgument( "call" );
process->addArgument( "vodafone" );
connect(process,SIGNAL(readyReadStdout()),
this, SLOT(updateText()));
connect(process, SIGNAL(processExited()),
this, SLOT(processExited()));
process->start();
}
...............
Do you have any idea, why this is not working for me?
Qprocess seems that doesn't handle well the process arguments..
When I run a command like "ls -l" with one argument, it works fine..... but ..
connecting with "pppd call vodafone" , is not working....
Thanks in advance.
....................
void Form1::callfunc()
{
textEdit1->append("Starting pppd daemon...");
process = new QProcess(this);
process->addArgument( "pppd" );
process->addArgument( "call" );
process->addArgument( "vodafone" );
connect(process,SIGNAL(readyReadStdout()),
this, SLOT(updateText()));
connect(process, SIGNAL(processExited()),
this, SLOT(processExited()));
process->start();
}
...............