doutang0335 2014-12-24 17:20
浏览 492

nohup> / dev / null windows的替代品

I'm running a php script which is not working properly in my windows OS but this is supposed to work in linux.

I figured it out that nohup is not an associated tool with windows.

$ffmpeg = 'C:\ffmpeg\bin\ffmpeg';
$command = "nohup >/dev/null 2>&1 ".$ffmpeg." -i {$input_path} {$ffmpeg_string} -stats -y {$output_path} 2> {$log_path} >/dev/null &";
exec( $command ); 

So what could be my best alternatives if I want to run this code on windows. Detailed explanation will be greatly appreciated as I don't know much about background process.

nohup on windows, exec without waiting for finish

  • 写回答

1条回答

  • dongwalun2507 2014-12-24 17:22
    关注

    nohup >/dev/null 2>&1

    The above command redirects everything from console to the null location, including the error log (2>&1).

    on Windows this is done using echo off in batch.

    Your question should probably be changed to "What is the equallent of nohup on Windows", it gives clarity.

    i think this link gives you more information on your issue: What's the nohup on Windows?

    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗