Hi Sean,
I experimented with your scenario and I do get output in the file and I can see it using 'tail -f'. Is there a lot of output? If not, it could be a buffering issue. The OS may not output its internal buffer until it fills up.
If you run the program to completion does the program.out file remain empty? That would definitely be weird. The OS should flush the buffers when the script exits.
Maybe try using 'tee' and see if it gives better results.
ncl program.ncl | tee program.out
This should output to the terminal and to the file simultaneously.
If this doesn't help, let us know.
-dave
On Oct 17, 2013, at 4:09 PM, Sean Egan <sdegan@alaska.edu> wrote:
> I have a curious bash issue that I need help with.
>
> When I execute
>
> ncl program.ncl > program.out &
> tail -f program.out
>
> I receive no output. The program continues to run in the background, but the file "program.out" remains empty. When I run
>
> ncl program.ncl
>
> I immediately receive output. Why is the redirect not working in this case?
>
> Is this something unique to NCL or is this a problem with the way I have my shell profile setup?
>
> Just curious,
>
> Sean Egan
> University of Alaska Fairbanks
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Oct 17 16:53:50 2013
This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT