How to check fork() hierachy in other terminal?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.
I do as following:
gcc fork.c./a.out &open another terminal and type
ps f -e
In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.
The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?
Thank you.
14.04 process
add a comment |Â
up vote
0
down vote
favorite
A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.
I do as following:
gcc fork.c./a.out &open another terminal and type
ps f -e
In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.
The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?
Thank you.
14.04 process
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.
I do as following:
gcc fork.c./a.out &open another terminal and type
ps f -e
In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.
The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?
Thank you.
14.04 process
A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command.
I do as following:
gcc fork.c./a.out &open another terminal and type
ps f -e
In step 3, I couldn't find the process ./a.out running anywhere. I tried to do ps -a and there is also no luck. Furthermore, when I tried to run a process background in one terminal, I could only find that process by using jobs in that same terminal. If I use jobs in other terminal while the process is still running, I still cannot see the process.
The problem is I did exactly the same steps in my university's lab and everything worked fine. Now I am trying to review for the exam by using my personal laptop and this happens. Could anyone identify the problem and how to fix it?
Thank you.
14.04 process
asked Jun 12 at 3:18
Username00097
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045783%2fhow-to-check-fork-hierachy-in-other-terminal%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password