i have try to get nginx version,use:
[email protected]:~# nv=/usr/local/nginx/sbin -v
[email protected]:~# echo $nv
but echo $nv was blank.
i also have try php or other program was work.
i have try to get nginx version,use:
[email protected]:~# nv=/usr/local/nginx/sbin -v
[email protected]:~# echo $nv
but echo $nv was blank.
i also have try php or other program was work.
On Mon, Feb 14, 2011 at 4:25 PM, licess [email protected] wrote:
i have try to get nginx version,use:
[email protected]:~# nv=/usr/local/nginx/sbin -v
[email protected]:~# echo $nv
perhaps you meant /usr/local/sbin/nginx -v
?
Also the output is directed to stderr (don’t ask me why) so you need
2>&1
nv=/usr/local/sbin/nginx -v 2>&1
echo $nv
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs