Editing
Scanco Administration
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=====Keeping a job running after you log out===== Use nohup. For example, suppose you want to run <tt>./myjob 20</tt>. In this case, you could use: nohup nice ./myjob 20 &> output & There are several things to note here: * The <tt>&</tt> at the end of the command line is there so you get the command prompt back immediately (see the previous section). * We have redirected the output to a file out_file with <tt>&> output</tt>. If you don't do this, any output to STDIN (normally the console) will automatically go into a file called <tt>nohup.out</tt>. * We've niced the job to reduce it's execution priority. This is courteous if you're a multiuser system. If you want to see what's in nohup.out (or whatever you called it) at any time, you can do the usual cat nohup.out Here's another potentially more useful command: tail -f nohup.out tail shows you the last few lines of the files. In addition, the -f flag ("follow") means that as lines get added to the file, they are displayed on the screen. This looks just like when you run the program without nohup, except when you hit CTRL-C, the program keeps on running in the background. [[Image:Redirect.jpg|15px]] [[#top|''Return to Contents'']] or [[Main_Page|''Return to Main Page'']]
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information