經安全檢測,此網站為安全網站,請放心前往原始網址!

bash - executing shell command in background from script - Stack Overflow

Leave off the quotes $cmd & $othercmd & eg: nicholas@nick-win7 /tmp $ cat test #!/bin/bash cmd="ls -la" $cmd & nicholas@nick-win7 /tmp $ ./test nicholas@nick-win7 /tmp $ total 6 drwxrwxrwt+ 1 nicholas root 0 2010-09-10 20:44 . drwxr-xr-x+ 1 nicholas root

stackoverflow.com

網址安全性掃描由 google 提供