Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Suspending a Process

This is a discussion on Suspending a Process within the Linux forums, part of the Operating Systems category; I know that it possible to suspend a process or application running in foreground. One way of doing this is ...

  1. #1
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124

    Exclamation Suspending a Process

    I know that it possible to suspend a process or application running in foreground. One way of doing this is by giving the below command in UNIX operating system.
    $stty susp ^Z <CR>

    But I am confused about whether it is possible to interrupt the process running in the background. Also I want to know if I give the above command for suspending the application in foreground from where my application will start running again. Kindly brief me on this process.


  2. #2
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108
    It is not possible to interrupt the process running in the background.
    In the command you have given namely:
    $stty susp ^Z <CR>

    What you have done is you have mapped ^Z to indicate that foreground process is to be interuppted. That is in other words when you press ^Z your current foreground process will be temporarily suspended and the job will be restarted from where it left off by using the job number of this process.


Latest Article

Network Security Risk Assessment and Measurement

Read More...