Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C++
command = command;
command += option;
command += " | tee /DATA/Database";
QP->start("/bin/sh", QStringList() << "-c" << command);
// verify Database file ??

The above is one of my older working codes and it is a apart of a shared library.

I like to verify the contents of the "tee" file and do not know how .

Help would be greatly appreciated.

What I have tried:

Running the code in "debug" mode gives no info about the file locatioh.

I did try using "find" - but not knowing the file path it takes forever...
Posted

1 solution

"tee" copies stdout to the named file. So all you need to do is open the file and read it in with your favourite method, be it std::ifstream, fopen, QFile or even, if you like open.
 
Share this answer
 
Comments
jana_hus 20-Jun-24 11:20am    
Thanks, I have not forgot this post...I am trying to rebuild my file functions to be more universal.
I do appreciate your help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900