您的位置:首页 > 其它

windows系统上面如何后台执行程序

2013-11-13 15:02 357 查看
转自:http://www.cnblogs.com/pengxl/archive/2011/05/05/2038240.html

工作就是写无聊的脚本,所以也要找这里东西,唉

windows上面查看进程,使用tasklist 命令

linux上面显示进程 使用 ps -ef 命令

----------------------------------------

在windows上面杀进程用taskkill命令

taskkill /im iperf.exe /t /f

linux上面用killall或者 kill命令

killall iperf1.7

----------------------------------------

在windows上面后台运行可以使用start 命令 并且指定/b 选项, linux系统需要在命令后面加上& 符号即可。

后台运行 iperf.exe 网络测试程序,并且把输出保存到 c:\iperf_multicast_server_logfile.txt

start /b iperf.exe -s -u -l 1k -B 224.0.100.2 -w 1G > c:\iperf_multicast_server_logfile.txt

后台运行/root/iperf1.7 网络测试程序,并且把输出保存到 /root/iperf_multicast_client_logfile.txt

/root/iperf1.7 -c 224.0.100.2 -u -l 1k -b 400M -w 1G -i 5 -t 60 -T 4 > /root/iperf_multicast_client_logfile.txt&

---------------------------------

windows上面显示 文本文件内容,可以用type命令。

type c:\iperf_multicast_server_logfile.txt

Linux上面显示文本文件内容,使用cat 命令即可

cat /root/iperf_multicast_client_logfile.txt
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: