ADSM-L

Re: AIX Help

2001-05-09 21:17:33
Subject: Re: AIX Help
From: Robert Clark <res03db2 AT GTE DOT NET>
Date: Wed, 9 May 2001 18:04:17 -0700
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 :
>    joef AT socrates.berkeley DOT edu
>
> 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:rdearm1 AT UIC DOT EDU]
> > Sent: Wednesday, May 09, 2001 3:14 PM
> > To: ADSM-L AT VM.MARIST DOT EDU
> > 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.
> >
<Prev in Thread] Current Thread [Next in Thread>