Answer to Question #471 in C++ for Hassan Wajahat
#include <unistd.h>
int main()
{
execl("/bin/bash", NULL, NULL, NULL);
return 0;
}
This code opens the bash file in the background which thus can't be viewed. How can I bring it in the foreground so that it can be viewed?
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment