How to use su with arguments?
How to I use su to run a command, and pass arguments to that command, and not su?
ex: Code:
su vmuser VBoxManage -q list runningvms |
The correct way would be
Code:
su vmuser -c 'VBoxManage -q list runningvms' For more information about the usage of su have a look at Code:
man su |
Ahh I see, that worked, thanks!
|
If your problem is solved please mark this thread as solved using the thread tools at the top of this thread.
|
All times are GMT -5. The time now is 05:23 AM. |