Re: Email & Progress

From: William Street

Date: Date Format Error: Mon, 3 Feb 103 10:11:20 -0800 (PST)


Use  echo $PPID   to get the process id of the _progress session.

Bill

> Careful !
> 
> input through echo $$.
>  will return the process Id of the shell you've just spawned to do the echo 
> rather than the Process Id of the progress session. If you run it multiple 
> times you'll get different, increasing pids. That may not matter if all you 
> want is a unique number. If you want the pid of the _progres session then
> 
> ps | fgrep _progres
> 
> as suggested by Tris will give you what you want.
> 
> -----Original Message-----
> From:	Gurdip Singh [SMTP:ae0b643c-b939-8280-de11-7103a7f6c0f2]
> Sent:	03 February 2003 17:10
> To:
> Subject:	RE: Email & Progress
> 
> Try this
> 
> def var x as c no-undo.
> input through echo $$.
> import x.
> message x.
> 
> ------------------------------------------------------------------------
> --
> Gurdip Singh 510-552-2363
> Progress/QAD Consultant
> Source One Unlimited ae0b643c-b939-8280-de11-7103a7f6c0f2 ae0b643c-b939-8280-de11-71030159c3f2
> ------------------------------------------------------------------------
> --
> 
> -----Original Message-----
> From:  [mailto:] On Behalf Of
> Jennifer Henderson
> Sent: Monday, February 03, 2003 8:21 AM
> To: 
> Subject: Email & Progress
> 
> 
> HPUX 10.2
> Progress 9.0 SP4
> 
> Hello All:
> 
> Is there a way to get a user's current PID number from within progress.
> I am working on a program to email a .txt from within a progress report
> and need to format the email such that the text is in an attached file.
> The emails that are formatted via a UNIX system scrip require the PID
> number in the Message ID line.  The line consists of:
> 
> echo "Message-ID: <`date afb73af1-b87f-e4b4-de11-e20406310c4b>"
> 
> I can recreate the YYYYMMDD etc in the correct format but the $$
> indicates the PID number and I don't know how to get that from inside
> progress.
> 
> Any help would be appreciated.
> 
> Thanks in advance.
> 
> Jennifer Henderson
> Phonic Ear, Inc.
> Petaluma CA
> 
>