Results 1 to 9 of 9
hi friends i have ported linux into arm and i want to run two background process on target
i have two c programs a.c and b.c
i have cross compiled ...
- 10-26-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 13
[SOLVED] how to run two background process
hi friends i have ported linux into arm and i want to run two background process on target
i have two c programs a.c and b.c
i have cross compiled them as
arm-linux-gcc -o a a.c
arm-linux-gcc -o b b.c
now i have transfered both object file a and b on arm
but i dont know how two run two background process
i want to run both the process at same time,,,,,
plz help me how can i run this
- 10-26-2010 #2Just Joined!
- Join Date
- Oct 2010
- Posts
- 16
You can start the process and push them to backgroud with bg command.
- 10-26-2010 #3Linux Newbie
- Join Date
- Dec 2009
- Posts
- 241
If I wanna start a program in the background I simply add a & at the end.
./a &
./b &
should do is.
- 10-27-2010 #4Just Joined!
- Join Date
- Feb 2009
- Posts
- 22
- 10-27-2010 #5Just Joined!
- Join Date
- Nov 2007
- Posts
- 7
A little better method is using the nohup as well (stands for no hangup after logout, so when your shell ends, it keeps on running)
So:
# nohup ./a &
# nohup ./b &
Nohup will also redirect all stdout to go in the textfile nohup.out.
- 10-27-2010 #6Just Joined!
- Join Date
- Apr 2005
- Location
- Central Florida
- Posts
- 12
check man pushd and popd just stack them up.
- 10-28-2010 #7
pushd and popd are commands for managing your shell's directory stack.
pushd and popd - Wikipedia, the free encyclopedia
- 10-29-2010 #8Just Joined!
- Join Date
- Apr 2005
- Location
- Central Florida
- Posts
- 12
I know what they do, just trying to get the o-p to do a little research, sounds like a homework assignment.
check: command1 || command2 or command1 && command2
Ther are many ways to do what he wants to do.
- 11-09-2010 #9Just Joined!
- Join Date
- Apr 2010
- Posts
- 13
thanks friends it got solved
nohup ./a &./b &
with this command both will run in background



