Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

End Task and New Task in linux.

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

End Task and New Task in linux.

#1 Post by hack3rcon »

Hello,
In the Windows OS, you can end a program and with the New Task button start it again. How about Linux?
With "kill -9 " Process ID" " we can stop a program but how about start it again? Any command?

Thank you.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: End Task and New Task in linux.

#2 Post by cuckooflew »

Your welcome.

Key words =

Code: Select all

With "kill -9 " Process ID" " we can stop a program but how about start it again? 
Hint:
In this tutorial we see how to manage processes with the Linux command line. ... If you close the xload window, the xload program terminates and the prompt returns. ... we are going to launch the xload program again, but this time we will put it in ... With ps, you are given a process id (PID). ... [me@linuxbox me]$ kill -9 2931 ...
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: End Task and New Task in linux.

#3 Post by Head_on_a_Stick »

SIGHUP might work and some programs employ SIGUSR1 or SIGUSR2 for restarts:

Code: Select all

pkill -hup -x $process
pkill -usr1 -x $process
pkill -usr2 -x $process
^ Replace $process with the actual name of the process.

EDIT: see signal(7) for a full list of signals.
deadbang

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: End Task and New Task in linux.

#4 Post by hack3rcon »

How about start it again? Just write the program name?

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: End Task and New Task in linux.

#5 Post by cuckooflew »

You could do it that way as well, type in the program name, and hit enter.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

Post Reply