Search notes:

vim script: system

" ..\run_.bat system
"
"
" Use -> executable() to determine if a command
" can be executed with system.

redir > system.out

let s:dir = system('dir /b')

echo s:dir

echo 'v:shell_error = ' . v:shell_error

let s:foo = system('inexisting-command')
echo 'v:shell_error = ' . v:shell_error

q
Github repository about-vim, path: /vimscript/functions/system.vim

See also

Vim: built in functions
VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758184243, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/functions/system(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78