![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Other Operating systems FreeBSD, Unix, Sun, find support here. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2005
Location: Illinois, US
Posts: 36
OS: WinXP Pro SP2 & Fedora 8
|
UNIX - How do you make a script continue after a & (starting another background PID)
Hi folks,
Hopefully someone on here can lend a hand with this. I'm trying to start DB2 in a script because DB2 was originally starting in inittab. By moving the DB2 commands from inittab to a script, I can reboot the LPAR to stop DB2, take a mksysb without DB2 running, then start DB2 with a script afterwards. The problem is... one of the DB2 commands has to continue running in the background, so I put a & at the end and this is hanging up the script. I have press Enter for it to continue. The first DB2 line, which starts the DB2 services, executes fine: /etc/rc.db2 > /dev/console 2>&1 However, this second line, which starts the DB2 fault monitor, requires to start it in a background process (hence the & at the end). This is causing my script to halt and I have to press Enter for it to continue: usr/opt/db2_08_01/bin/db2fmcd & I have much more starting after DB2 (MQ, iWAY, and WAS) so I need a way for the script to keep going. Anyone know how to overcome this? Forgot to mention, I'm using AIX 5.2 Version and TL 5200-09. Thx Last edited by Need2BAGeek; 06-26-2009 at 10:22 AM. Reason: forgot to mention OS |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|