![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bring a cron job to foreground | vibhor_agarwali | UNIX for Advanced & Expert Users | 5 | 05-07-2008 02:35 AM |
| Execute SAS Foreground | terala | Shell Programming and Scripting | 0 | 10-21-2005 12:50 PM |
| set background/foreground color in .profile | dvella | UNIX for Dummies Questions & Answers | 3 | 08-14-2005 04:12 PM |
| Background job | rdbooth | UNIX for Dummies Questions & Answers | 1 | 03-23-2004 04:59 AM |
| problems with ctrl-z, to switch foreground, background | yls177 | UNIX for Dummies Questions & Answers | 9 | 04-15-2003 09:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to get background job to foreground
hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again
[root@sandy root]# sleep 75& [1] 21751 [root@sandy root]# |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Depends on the shell. Try:
fg |
|
#3
|
|||
|
|||
|
hi there, i am using bash ,so shud i jump to jsh to make it foreground or will it work for bash itself
|
|
#4
|
|||
|
|||
|
A "trick" that I like to use is..
[root@dev]# sleep 50 (then hit Ctrl-Z) [1]+ Stopped sleep 50 [root@dev]# bg [1]+ sleep 50 & [root@dev]# fg sleep 50 |
|
#5
|
|||
|
|||
|
from man bash... fg is available in bash also, pls refer to the manual page of bash for more details.
|
|||
| Google The UNIX and Linux Forums |