in reply to Perl script ( Run background all the time )

Type "jobs" to see a list of things running in the background. To bring one to the foreground, type "fg" followed by one of the numbers you see in the jobs list. Example:
# jobs [1]- Running sleep 15 & [2]+ Running sleep 20 & # fg 2 sleep 20 [1]- Done sleep 15
EDIT: After you're done with something in the foreground and you want to go back to the background, type ctrl-z to stop it, then bg to restart it in the background.

Replies are listed 'Best First'.
Re^2: Perl script ( Run background all the time )
by JavaFan (Canon) on Nov 07, 2011 at 15:59 UTC
    jobs only lists jobs started by the current shell, which haven't detached themselves. This may be just what the OP wants, but that isn't clear from his post.
      Thanks JavaFan! I learn a lot posting here :)