LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

  1. Old Comment

    allowing commands to continue after parent shell exit

    Alternatively, you can put "&" after the command before closing the shell, which daemonizes the child process. If the child process is already running, you can temporarily suspend it by hitting Ctrl-Z, then typing in "bg" (which "continues" the process daemonized). To bring the process back to the foreground, run "fg".

    Code:
    $ sleep 100 # this is the process we'll daemonize
    ^Z # Ctrl-Z is immediate, Ctrl-Y suspends the process when it tries to read input
    [1]+  Stopped                 sleep 100
    $ bg # short for "background"...only works on suspended processes
    [1]+ sleep 100 &  <~~~ same as if you'd run "sleep 100 &" from the start
    $ time sleep 5 # a different "sleep" process
    
    real	0m5.003s
    user	0m0.004s
    sys	0m0.000s
    $ fg # bring the "old" sleep process that we daemonized back to the foreground
    sleep 100
    ^C
    $ sleep 200 & # daemonize the process from the start
    [1] 2117
    $ ps aux | grep sleep # look at the daemonized process
    user      2117  0.0  0.0   3232   616 pts/1    S    22:33   0:00 sleep 200
    $ fg # bring the daemonized process back to the foreground
    sleep 200
    ^C
    $
    Posted 11-08-2011 at 10:35 PM by rocket357 rocket357 is offline
    Updated 11-08-2011 at 10:42 PM by rocket357
  2. Old Comment

    allowing commands to continue after parent shell exit

    GNU screen is also useful if you want to exit and resume later, e.g. over ssh.
    Posted 11-05-2011 at 09:49 AM by ewqdsacxz ewqdsacxz is offline
  3. Old Comment

    playing video on the desktop background

    That;'s interesting, I'll try that soon
    Posted 06-01-2011 at 11:12 PM by TheIndependentAquarius TheIndependentAquarius is offline
  4. Old Comment

    checking 3D acceleration of graphics

    Good point. One has to check whether the 3D rendering is being done by software or hardware.
    Posted 05-31-2011 at 05:55 PM by neonsignal neonsignal is offline
  5. Old Comment

    checking 3D acceleration of graphics

    That's not always the case:

    $ glxinfo | grep direct
    direct rendering: Yes
    $ glxgears
    1733 frames in 5.0 seconds = 346.452 FPS
    1733 frames in 5.0 seconds = 346.516 FPS
    1733 frames in 5.0 seconds = 346.525 FPS
    ^C
    $ glxinfo | grep render
    direct rendering: Yes
    OpenGL renderer string: Software Rasterizer
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fragment_program,
    $

    ~350 fps is entirely too slow for this to be true hardware acceleration, especially for an ATI HD 3450.
    Posted 05-31-2011 at 04:26 PM by rocket357 rocket357 is offline
  6. Old Comment
    Posted 05-24-2011 at 01:06 PM by peonuser peonuser is offline
  7. Old Comment

    remote shell access

    I'm a big fan of installing fail2ban when sshd is running...
    Posted 05-08-2011 at 02:04 PM by rich_c rich_c is offline

  



All times are GMT -5. The time now is 11:50 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration