User Tools

Site Tools


linux:bash:menjalankan-perintah-yang-tersimpan-di-variable

Bash: Menjalankan Perintah yang tersimpan di Variable

Berikut ini adalah cara menjalankan perintah yang tersimpan di variable

cmd='ls -l "/tmp/test/"'
eval "$cmd"

Selamat mencoba.

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/bash/menjalankan-perintah-yang-tersimpan-di-variable.txt · Last modified: 2024/01/02 21:34 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki