Re: [PHP] Extracting data from exec() call

2011-06-14 Thread Jim Lucas
On 6/14/2011 10:35 AM, Ashley M. Kirchner wrote: > > I'm trying to extract data coming from an exec() call. The exec() call is > performing an ncdump on a netCDF file: > >$filename = "mlab.20110101.cdf"; > exec("/usr/bin/ncdump -l 2048 -v wmax ".$filename, $output); > ech

[PHP] Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
I'm trying to extract data coming from an exec() call. The exec() call is performing an ncdump on a netCDF file: This is all fine, however the data comes in with extra information I don't need, and the data I do need is in a long string format: Array ( [0] => netc