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

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

瀏覽:443
日期:2026-04-24
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 ...看更多