我正在尝试创建一个网页表单,在提交时,它将调用filebot脚本(或Unix中具有大量参数列表的任何程序)。当我从Unix提示符运行这个命令时,它运行得很好。想创建一个网页,我可以点击“提交”运行这个程序。你知道吗
/usr/bin/filebot -script fn:amc "/home/user/jDownloads/Extracted/" --output "/home/user/Videos" --log-file amc.log --action copy -non-strict --def clean=y "seriesFormat=TV/{n} {'S'+s}/{n} {sxe} - {t}" "animeFormat=Cartoons/{n} {sxe - {t}" "movieFormat=Movies/{n} {y}/{sxe}" musicFormat=Music/{n}/{fn}"
我愿意使用perl
、python
或php script
作为表单提交的处理程序。你知道吗
由于有大量的特殊字符,我很难用上述任何脚本语言正确地“转义”命令。你知道吗
如果有人能帮忙就好了。你知道吗
谢谢
在Python中,如果将字符串用三个引号括起来,则不需要转义任何字符。你知道吗
然后可以使用子流程模块调用它:http://docs.python.org/2/library/subprocess.html
相关问题 更多 >
编程相关推荐