Last active
July 23, 2019 04:03
-
-
Save caramelchocolate/4f142c6baa31c522ed714df709b3a869 to your computer and use it in GitHub Desktop.
list php version in jails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| jls | awk 'NR>1 {print $4}' | awk -F'/' '{print $NF}' | xargs -I@ sh -c 'j=@; v=$(jexec ${j} php -v | head -1); echo "${j}: ${v}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result
jail_test: PHP 7.3.6 (cli) (built: Jul 6 2019 01:36:03) ( NTS )
jail_test2: PHP 7.1.30 (cli) (built: Jul 6 2019 01:35:15) ( NTS )