I have some job to run which need be attached to terminal (or in foreground). The job is run in remote servers, and needs keep running after the users logout. I am aware of vnc server, however, I want to know if there is any builtin tool in redhat that can work this out. (that is, I dont have sudo to install extra software). 
is it possible to run job in foreground after user logout
terminal;tty;background process
GNU screen is what you're looking for. It's pre-installed on all *nix systems I've used, so should be on Red Hat. screen acts as a terminal server, which can be attached and detached from terminal clients. It allows interesting possibilities such as having the same terminal session being viewed by multiple clients at the same time, multiple tabs, (horizontal) split screen, remote detaching (of other clients), etc.If your ssh connection breaks unpredictably, your previous running command won't know about it and will continue to run as normal. You might have 10 different programs running in 10 different tabs within screen, and they'll all continue to run. You can then reattach (after logging in), with a few different variants of the same command - the one I use is:- screen -RDThis means to reattach your previous screen session to the current terminal, and IIRC detaches whatever other client(s) might still be connected.To send a command to screen, when you're within a session, by default you use the Ctrl+a prefix, before pressing another letter, to for example, create or close a window. There are loads of screen cheat sheets online, and of course there's always the man page for more information if you need.Screen has been around for a long time, so there are newer alternatives. I switched to tmux a year or so ago, and haven't looked back. This probably would require compiling, but it allows vertical split screen, which is the main reason why I favour it.The above solutions sidestep your question though. They provide you with solutions provided you haven't started your program yet. If you have a long running program which wasn't created within a screen or tmux session, then you can still recover it. You won't be able to recover the command line history, AFAIK, but you can recover control of the process. The program I've used for this is reptyr, which I've successfully built and used on Mac OSX and Debian Linux flavours. IIRC, this requires sudo privileges to run though.