For now, I'm going to assume that you are an admin on your machine since executing date -s ... requires root privileges.
As for your question, you need to properly quote your input: Use qx or other quote like operators in your system function call.
system('date -s "2 June 2020 18:00:00"');
In reply to Re: to print a system command
by robby_dobby
in thread to print a system command
by oikool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |