Like I use a script to login to use the internet. That script runs in the terminal, so what a normal user would do is open the terminal until he wants the script to keep running, which sometimes bugs a lot.
The better way is running s script in backgroud..
For ex, if the script name is myscript.py
$./myscript.py &This will run the script in background. To see all programs running in background, type
To bring it to the foreground, type
$fgSo, problem solved...
But what if you forgot to append '&' and script has already started running. Now, if you wish to send the script to background, you will have to do two things. First, suspend the script to background and then make it run..
Below is the example for a script 'Cyberoam.py' with all the commands..
Enter your ID: 200801076
Login ATTEMPT at: 09-01-2010 -> 14:14:17
Next attempt after: 3500seconds
Message from CYBEROAM: You have successfully logged in
+ Stopped ./Cyberoam.py
+ ./Cyberoam.py &