I am trying to list all the pattern of /dev/tty but it is giving the error ls: cannot access /dev/tty*: No such file or directory


Qt Code:
  1. QProcess* process = new QProcess(this);
  2. QStringList sArgs;
  3. sArgs << "/dev/tty*";
  4. process->start("ls", sArgs);
  5. process->waitForFinished(-1);
  6. qDebug() << process->readAllStandardOutput();
  7. qDebug() << process->readAllStandardError();
To copy to clipboard, switch view to plain text mode