Another trick is to use the "at" command to run things unassociated with the terminal: print "dsmc sched 2>&1 >/dev/null" | at now Robert Clark wrote: > inittab shouldn't have the problem in the first place. > > And a way to work around the "nohup" problem is to not > use ksh to run dsmc. > > (while in ksh) > $bsh > $nohup dsmc sched 2>&1 >/dev/null & > $exit > (now back in ksh) > > (Seems to work well.) > > [RC] > > On Wed, May 09, 2001 at 05:23:48PM -0700, Joe Faracchio wrote: > > DING DING DING DING DING DING DING DING DING DING DING DING DING!!!!! > > thanks Frank McClean , This worked!!!!! (now can I get it into > > INITTAB????) > > > > As you said I did: > > > > %vi strtsched > > "strtsched" [New file] > > #!/bin/ksh > > start_sched O > > dsmc sched > /dev/null 2>&1 & > > trap start_sched O > > exit > > ~ > > "strtsched" [New file] 5 lines, 79 characters > > > > root@ucbackup2-on-[/] > > %chmod +x strtsched > > > > root@ucbackup2-on-[/] > > %strtsched > > strtsched[2]: start_sched: not found. > > > > root@ucbackup2-on-[/] > > %ps -ef|grep dsmc > > root 17296 1 0 17:20:51 pts/1 0:00 dsmc sched > > root 20032 18642 2 17:20:57 pts/1 0:00 grep dsmc > > > > Joseph A Faracchio, Systems Programmer, UC Berkeley > > Private mail on any topic should be directed to : > > [EMAIL PROTECTED] > > > > On Wed, 9 May 2001, McClean, Frank wrote: > > > > > Put this in a file and execute the file as root: > > > > > > #!/bin/ksh > > > start_sched O > > > dsmc sched > /dev/null 2>&1 & > > > trap start_sched O > > > exit > > > > > > > > > This is from Curt Schriever at IBM support. IC26843 for AIX4.3.3 > > > You may get a false error stating that "start_sched not found", > > > but the scheduler will stay running when you exit. > > > > > > > > > -----Original Message----- > > > From: Dearman, Richard [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, May 09, 2001 3:14 PM > > > To: [EMAIL PROTECTED] > > > Subject: AIX Help > > > > > > > > > I am trying to run the "nohup dsmc sched 2> /dev/null &" command on my AIX > > > 4.3.3 machine and it works but every time I exit. It says "There are jobs > > > running" so I exit again and whe I check the dsmc sched process is not > > > running. I thought the nohup command was suppose to let process run even > > > after you logout. What am I doing wrong. > > > > > > Thanks > > > ***************************EMAIL DISCLAIMER************************** > > > This e-mail and any files transmitted with it may be confidential and are > > > intended solely for the use of the individual or entity to whom they are > > > addressed. If you are not the intended recipient or the individual > > > responsible for delivering the e-mail to the intended recipient, any > > > disclosure, copying, distribution or any action taken or omitted to be taken > > > in reliance on it, is strictly prohibited. If you have received this e-mail > > > in error, please delete it and notify the sender or contact Health > > > Information Management (312) 996-3941. > > >
begin:vcard n:Schafer;Ray tel;cell:+1 (512) 426-3188 tel;fax:+1 (512) 433-3200 tel;work:+1 (512) 433-3345 x-mozilla-html:FALSE url:http://www.tkg.com org:The Kernel Group;Sales and Services version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Sales Engineer adr;quoted-printable:;;1250 South Capital of Texas Highway=0D=0ABldg 3, Ste. 601;Austin;TX;78746;United States fn:Ray Schafer end:vcard
