execute two shell commands in single exec php statement

后端 未结 5 929
走了就别回头了
走了就别回头了 2020-12-03 07:25

I want to display all the files that are modified after a specified date

the commands are

touch --date \'2011-09-19 /home/  , find /home/

5条回答
  •  Happy的楠姐
    2020-12-03 07:57

    Seperate them with a semicolon (;). Example:

    exec("touch --date '2011-09-19' /home/; find /home/");
    

提交回复
热议问题