Home > OS >  Consult how to run a vim editor program?
Consult how to run a vim editor program?

Time:03-01

Good Daniel, the younger brother to ask how to run my program in the Linux? Write a simple function to obtain the process id,
 # include & lt; Unistd. H> 
Int main ()
{
Printf (" my parent 'pid=% d \ n ", getppid);
return 0;
}

How to print out what I want results? thank you

CodePudding user response:

If is bash compiler in file bash [name], if not bash, execute permissions to the file, then./[file name] can also
  • Related