我想将这个在Unix系统上运行良好的PHP脚本转换为Windows脚本。将基于Unix的PHP脚本转换为Windows的批处理文件
我不知道如何重写它。有人能帮我吗?
下面是脚本:
$cmd = 'nohup sudo -u '.$user.' bash -c "cd ' .
escapeshellarg($path) . '; VVERBOSE=true QUEUE=' .
escapeshellarg($queue) . ' APP_INCLUDE=' .
escapeshellarg($bootstrap_path) . ' INTERVAL=' .
escapeshellarg($interval) . ' CAKE=' .
escapeshellarg(CAKE) . ' COUNT=' . $count .
' php ./resque.php';
$cmd .= ' > '. escapeshellarg($log_path).' 2>&1" >/dev/null 2>&1 &';
passthru($cmd);
这不是一个bash脚本!它看起来更像perl或PHP。 –
另外,一个更好的想法是描述你想做什么(以及你自己试图解决这个问题),而不是让我们尝试解码你的脚本 –