views:

189

answers:

5

I am calling a csh script that the first thing it does is starts a new group.

I need to be able to see the standard output from the child process that is executed after the fork. I also want the parent process to 'hang' unitl the child process is finished.

Here is the script (razor_from_cgwin.sh).

(sort of)

newgrp name
source /stuff/morestuff/stuffiwant
razor -c thread -f Keil1403 -g lib . -o
chmod +x *
./rz_build*
> server{me}:./razor_from_cgwin.sh
> server{me}:

What I want is this:

>server{me}:./razor_from_cgwin
>(hang)
>any output from child forked process
>server{me}:

Razor is the CM I am using on the project I am working on. It is not important to this problem except that i need to start a new group to call it. I am calling the script (./razor_from_cgwin.sh) from a ssh session from CYGWIN :)

A: 

That seems odd - if this was a Unix system there's no reason I can think of why you wouldn't automatically see the output from the child process.

Alnitak
A: 

It is a Sun Solaris 7.0

Paul
A: 
Paul
A: 

ughh ... newgrp name << END_HERE

source /stuff/morestuff/stuffiwant

razor -c thread -f Keil1403 -g lib . -o

chmod +x *

./rz_build*

END_HERE

Paul
I do seem to be getting the errors messages.
Paul
just not the STDOUT
Paul
A: 

Problem solved. The original problem was that I was forking a sub prcoess in the script.

Now that I use "Here Documents". I see the output in my calling console. So Alnitak was correct.

Paul